Skip to main content
Question

API calls to Create a Folder and Add Collaborators

  • May 22, 2025
  • 2 replies
  • 9 views

Forum|alt.badge.img

I have this issue where when I make the API call to create a folder, it works through Postman but through the terminal it will on and off. I mostly get an error like this:

  File "/opt/anaconda3/lib/python3.8/json/__init__.py", line 357, in loads

    return _default_decoder.decode(s)

  File "/opt/anaconda3/lib/python3.8/json/decoder.py", line 337, in decode

    obj, end = self.raw_decode(s, idx=_w(s, 0).end())

  File "/opt/anaconda3/lib/python3.8/json/decoder.py", line 355, in raw_decode

    raise JSONDecodeError("Expecting value", s, err.value) from None

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

 

I feel like this might have to do with authorization but I cannot wrap my head around it. Any help on this please??

2 replies

Forum|alt.badge.img

Hi Ruqia, 

Would you mind sharing your code with me? 

Thanks, 

Alex, Box Developer Advocate


Forum|alt.badge.img

Hi Alex,

Thanks for your response. I figured out the error was due to an authorization error.

Ruqia