API issue with oapi.get_structures_with_sets?

I’m having an issue running some code from the AllenSDK (JSONDecodeError when running oapi.get_structures_with_sets([1]) · Issue #2684 · AllenInstitute/AllenSDK · GitHub). I get a JSONDecodeError when trying to run the following block of code

from allensdk.api.queries.ontologies_api import OntologiesApi
oapi = OntologiesApi()
structure_graph = oapi.get_structures_with_sets([1])

I suspect it might be an API issue rather than an SDK issue, as I’ve had this code work perfectly fine in the past. Anyone else having this issue?

It’s working now today. Not sure what was causing the issue, though

Thank you for letting us know that it is working now.

1 Like

Hi, I get the same cryptic error all of a sudden: simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Are you still experiencing this issue? I just tried the 3 lines of code I shared in the original post and they are working today, at least. My guess is this is a server-side issue that comes up from time to time

Solved the day after. Agree with your explanation.