influxdata / influxdata/influxdb
nested exceptions
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
RE: https://github.com/influxdata/idpe/issues/2189
The response body in the case of the error is of form (for example, doing the update of a tasks with invalid value)
```
message = 'failed to update task'
code = 'invalid'
op = 'kv/taskOptions'
err = '{u'message': u'invalid options; Err: type error 1:40-1:41: undefined identifier "f"', u'code': u'invalid', u'error': u'type error 1:40-1:41: undefined identifier "f"', u'op': u'kv/taskOptions'}'
```
As can be seen the `err` key has dictionary value with another error. According to the swagger doc. `err` should be a string.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is identified in the issue. Start by reproducing the invalid task update and tracing the API response against the Swagger definition; done means the nested err value is returned as a string rather than a dictionary.
Written by the indexing model from the issue text.
Assessment
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100