You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I try to access a space with an invalid API key, the API returns 404. QueryBuilder doesn't handle this gracefully, but obviously tries to parse the result. That leaves me with stack traces of this sort (async frames removed):
`RuntimeBinderException: Cannot perform runtime binding on a null reference
If I have an invalid API key, there's a graceful error message because it can't be converted to a bearer token, but a valid token for another space causes this.
The text was updated successfully, but these errors were encountered:
Hi, this should now be fixed in the latest version.
The problem was an inconsistensy in the error format in our API, there was no error object returned in the details object. I've made the code slightly more resilient to this case.
Thanks again for the report and let me know if it doesn't seem to work for you.
If I try to access a space with an invalid API key, the API returns 404. QueryBuilder doesn't handle this gracefully, but obviously tries to parse the result. That leaves me with stack traces of this sort (async frames removed):
`RuntimeBinderException: Cannot perform runtime binding on a null reference
CallSite.Target(Closure , CallSite , object )
System.Dynamic.UpdateDelegates.UpdateAndExecute1<T0, TRet>(CallSite site, T0 arg0)
Contentful.Core.ContentfulClientBase+d__8.MoveNext()
Contentful.Core.ContentfulClientBase+d__14.MoveNext()
Contentful.Core.ContentfulClientBase+d__11.MoveNext()
Contentful.Core.ContentfulClientBase+d__10.MoveNext()
Contentful.Core.ContentfulClient+d__32.MoveNext()
Contentful.Core.ContentfulClient+d__14.MoveNext()
Contentful.Core.ContentfulClient+d__13.MoveNext()`
If I have an invalid API key, there's a graceful error message because it can't be converted to a bearer token, but a valid token for another space causes this.
The text was updated successfully, but these errors were encountered: