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

Field "isMonitored" of type builtins.bool is missing in snyk.models.Project instance #106

Open
pohly opened this issue Jan 28, 2021 · 1 comment

Comments

@pohly
Copy link

pohly commented Jan 28, 2021

This is with pysnyk 0.6.1 installed via pip3.

$ python3 examples/api-demo-1-list-projects.py --orgId=....
Traceback (most recent call last):
  File "examples/api-demo-1-list-projects.py", line 23, in <module>
    for proj in client.organizations.get(org_id).projects.all():
  File "/home/pohly/.local/lib/python3.7/site-packages/snyk/managers.py", line 168, in all
    return self._query()
  File "/home/pohly/.local/lib/python3.7/site-packages/snyk/managers.py", line 159, in _query
    projects.append(self.klass.from_dict(project_data))
  File "<string>", line 106, in from_dict
mashumaro.exceptions.MissingField: Field "isMonitored" of type builtins.bool is missing in snyk.models.Project instance

Enabling logging shows that the GET /api/org/.../projects HTTP/1.1 succeeded.

@pohly
Copy link
Author

pohly commented Jan 28, 2021

I'm running this against my company's Snyk installation, not the public Snyk server.

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