Skip to content

Handle missing 'tags' key #234

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

Closed
tobias-schuele opened this issue Apr 22, 2021 · 1 comment · Fixed by #235
Closed

Handle missing 'tags' key #234

tobias-schuele opened this issue Apr 22, 2021 · 1 comment · Fixed by #235
Labels
bug Something isn't working
Milestone

Comments

@tobias-schuele
Copy link

Steps to reproduce:

Write a dictionary-style object without the tags key (e.g. because the tags are provided via default tags):

client.write("my-bucket", "my-org", {"measurement": "h2o_feet", "fields": {"water_level": 1.0}, "time": 1})

Expected behavior:

Either tolerate missing tags key or emit a self-explanatory error message / raise an exeception.

Actual behavior:

'NoneType' object does not support item assignment.

Specifications:

  • InfluxDB Version: 2.0.4
  • Platform: Linux Ubuntu 20.10
@bednar
Copy link
Contributor

bednar commented Apr 23, 2021

@tobias-schuele, thanks for using our client, We will take a look.

@bednar bednar added the bug Something isn't working label Apr 23, 2021
@bednar bednar added this to the 1.17.0 milestone Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants