Comments (2)
This fails at json unmarshal. The workflow doc parsing functionality are
relying on the json unmarshal function in the standard Go library
(encoding/json) to convert the json stream to a Go struct, and the error
msg is reported by that library function. I think it is not easy for now to
report finer-grained error msg if we are using the standard Go library .
Thus for now, we have to make sure the job template follows the json
specification in the document. On the roadmap, we will have better workflow
parsing framework, that will have better workflow checking and debug
capability.
On Tue, Jun 10, 2014 at 3:28 PM, MrCreosote [email protected]
wrote:
Would it be possible to give the location of the error in the JSON when
JSON parse errors occur? For example:crusherofheads@icrushdeheads:~/awe_sec$ curl -X POST -F
[email protected] http://localhost:7080/job
{"status":400,"data":null,"error":["json: cannot unmarshal number into Go
value of type string"]}That's really hard to debug. In this case it turns out that the depends
fields in tasks must be strings, not numbers, which was the cause of the
error.—
Reply to this email directly or view it on GitHub
#236.
from awe.
This is a known issue in Go, see https://code.google.com/p/go/issues/detail?id=6716
from awe.
Related Issues (20)
- [Feature request] DISTINCT query HOT 1
- Workunits getting killed HOT 4
- Debug and error messages not very unified HOT 1
- On modifying attributes HOT 3
- possible bug with admin users HOT 1
- Login Widget HOT 1
- AWE client crashes on relative paths HOT 3
- Awe server crash on job submit HOT 1
- Failures in order/limit to get all HOT 4
- predata check
- better error message for error shock url in output node HOT 1
- Need to check size of documents before saving to mongo (16MB limit) HOT 1
- Need to modify mongo timeouts. HOT 1
- Recompute requires subsequent "resume" call to resume a job. This should be done all in one step. HOT 1
- AWE monitor auth HOT 1
- Support Casbin as the authorization module
- go get fails HOT 1
- replace goweb with go-swagger for API
- What does the AWE acronym stand for? HOT 1
- Needs to sanitize .filename
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 awe.