influxdata / influxdata/influxdb

nested exceptions

Open
#13,714 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/api kind/bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.