Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed JSON produces unhelpful error message #16498

Closed
davidgs opened this issue Jan 10, 2020 · 0 comments · Fixed by #16716
Closed

Malformed JSON produces unhelpful error message #16498

davidgs opened this issue Jan 10, 2020 · 0 comments · Fixed by #16716

Comments

@davidgs
Copy link
Contributor

davidgs commented Jan 10, 2020

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

curl --data '{"MYSQL_USER", "davidgs"}' --request PATCH --url https://us-west-2-1.aws.cloud2.influxdata.com/api/v2/orgs/f978dfb87de31ea3/secrets --header 'Authorization: Token token>'

Expected behavior:
Describe what you expected to happen.
Some sort of detailed error message
Actual behavior:
Describe What actually happened.
"An internal error has occured"

Environment info:

  • System info: Run uname -srm and copy the output here
  • InfluxDB version: Run influxd version and copy the output here
  • Other relevant environment details: Container runtime, disk info, etc

Config:
Copy any non-default config values here or attach the full config as a gist or file.

Logs:
Include snippet of errors in log.

Performance:
Generate profiles with the following commands for bugs related to performance, locking, out of memory (OOM), etc.

# Commands should be run when the bug is actively happening.
# Note: This command will run for at least 30 seconds.
curl -o profiles.tar.gz "http://localhost:8086/debug/pprof/all?cpu=true"
curl -o vars.txt "http://localhost:8086/debug/vars"
iostat -xd 1 30 > iostat.txt
# Attach the `profiles.tar.gz`, `vars.txt`, and `iostat.txt` output files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants