Comments (2)
Following up on this, using the sandbox I constructed a local curl command with a bad transactions and did get a 'text/plain' response. Moving forward with the assumption then that all errors specified as 'string' return as 'text/plain'.
`root@7ff87f1bb76a:/opt/algorand/node# curl -v -X POST --data-binary @./400_test_2.tx -H "X-Algo-API-Token: $(cat ./data/algod.token)" -H "Content-Type: application/x-binary" http://127.0.0.1:4001/v1/transactions
Note: Unnecessary use of -X or --request, POST is already inferred.
- Trying 127.0.0.1...
- TCP_NODELAY set
- Connected to 127.0.0.1 (127.0.0.1) port 4001 (#0)
POST /v1/transactions HTTP/1.1
Host: 127.0.0.1:4001
User-Agent: curl/7.58.0
Accept: /
X-Algo-API-Token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Content-Type: application/x-binary
Content-Length: 258
- upload completely sent off: 258 out of 258 bytes
< HTTP/1.1 400 Bad Request
< Access-Control-Allow-Headers: X-Algo-API-Token, Content-Type
< Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS
< Access-Control-Allow-Origin: *
< Date: Thu, 12 Mar 2020 14:34:15 GMT
< Content-Length: 77
< Content-Type: text/plain; charset=utf-8
< - Connection #0 to host 127.0.0.1 left intact
TransactionPool.Remember: txn dead: round 5455525 outside of 5153790--5154790root@7ff87f1bb76a:/opt/algorand/node# `
from docs.
This inconsistent behavior is expected to be fixed as part of an upcoming release. We will comment here with more information as it becomes available.
from docs.
Related Issues (20)
- Python examples for Indexer look incorrect
- Replace inline examples with snippets from SDK examples
- Create page of common error messages to solutions
- Add example showing retrieval of all transactions in a group
- SDKs refer to the wrong URL for V2 REST docs HOT 1
- Documentation on Contract accounts is inconsistent, as well as missing.
- Add Instructions for editing examples HOT 1
- Missing information on installing Telemetry HOT 7
- Link points to outdated (unofficial) Windows binaries
- mkdocs: Links should be file system paths rather than relative URL paths
- remove references to AlgoScan HOT 1
- Metrics Overview: Average Transaction Fee reads "NaN ALGO"
- Mention the new AVM VSCode debugger in the Simulate Page
- AlgoKit Quick Start Guide is out of date - instructions no longer match CLI output
- AlgoKit Quick Start Guide - add instructions for Typescript Users
- Add details about why `extrapages` is useful HOT 1
- Parameter table page has no documentation for boxes
- Link 404
- to_public_key(m) method does not exist on V2 SDK python HOT 1
- Transaction page needs some tweaks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.