Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

JsonRefError: Unresolvable JSON pointer: '/definitions/MilestoneReference' #91

Open
sentry-io bot opened this issue Apr 24, 2020 · 1 comment
Open
Labels
bug Something isn't working error handling

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 24, 2020

If a user uploads a schema with unresolvable JSON pointers, then the app will error. We can add error handling for the `get_mapping_sheet_from_* methods.

Sentry Issue: OPEN-CONTRACTING-TOUCAN-W

AttributeError: 'JsonRef' object has no attribute 'cache'
  File "proxytypes.py", line 252, in __subject__
    return self.cache
  File "proxytypes.py", line 176, in __getattribute__
    return _oga(self, attr)

KeyError: 'MilestoneReference'
  File "jsonref.py", line 217, in resolve_pointer
    document = document[part]

JsonRefError: Unresolvable JSON pointer: '/definitions/MilestoneReference'
(20 additional frame(s) were not displayed)
...
  File "jsonref.py", line 174, in callback
    result = self.resolve_pointer(self.store[uri], fragment)
  File "proxytypes.py", line 134, in wrapper
    return method(self, *args, **kwargs)
  File "jsonref.py", line 219, in resolve_pointer
    self._error("Unresolvable JSON pointer: %r" % pointer, cause=e)
  File "proxytypes.py", line 134, in wrapper
    return method(self, *args, **kwargs)
  File "jsonref.py", line 229, in _error
    cause=cause,
@jpmckinney jpmckinney added the bug Something isn't working label Apr 24, 2020
@sentry-io
Copy link
Author

sentry-io bot commented Apr 29, 2020

Sentry issue: OPEN-CONTRACTING-TOUCAN-X

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working error handling
Projects
None yet
Development

No branches or pull requests

1 participant