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

_assign_field_values tries to iterate over a string #69

Closed
1 task
nrowealign opened this issue May 12, 2023 · 1 comment
Closed
1 task

_assign_field_values tries to iterate over a string #69

nrowealign opened this issue May 12, 2023 · 1 comment

Comments

@nrowealign
Copy link

Where did you get the code?
[- [ ] Downloaded from GitHub

Describe the bug
_assign_field_values throws AttributeError: 'str' object has no attribute 'items' in kiota_serialization_json/json_parse_node.py

To Reproduce
Steps to reproduce the behavior:

  1. copy the app-only tutorial
  2. run the code
  3. See error

Expected behavior
The code should not throw the exception.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: MacOS 13.0.1
  • Browser no browser involved
  • Version 22

Dependency versions

  • Authentication library (MSAL, etc.) version: 1.21.0
  • Graph library (Graph SDK, REST library, etc.) version: 1.0.0a4

Additional context
My code differs slightly from the tutorial in that I'm getting the information you put in a config file from the environment, but other than that it's identical. If I edit kiota_serialization_json/json_parse_node.py and add print(object_dict) right before the for key, val in object_dict.items(): line, I am getting the expected data, but it's not being parsed (it's still a string.)

@nrowealign
Copy link
Author

I see microsoft/kiota-serialization-json-python#83 Sorry for the duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant