And I am stuck. Can anyone help with that error message or point me in the right direction, I have searched the community and internet but not found anyone with a similar problem.
Can I get more information about the error from HubSpot, some log or something?
I am using Oauth and and have succesfully obtained an accesstoken that is used in the request. The accesstoken is to a Test Account in this case but I have also tested it with a Free account with the same result. I have also tested uploading to the same account from the "playground" on the Files API documentation page with the same result.
I was misstaken in my previous post, the change we made that made it work again was that we changed from trying to upload to the root directory to instead upload to a named directory.
I managed to solve this on our end. I believe that the "problem" was that we requested (refreshed) the access token between the upload of the file and the status request. When fixing our implementation of OAuth so it does not refresh the access token unnecesarily the problem went away.
It would be nice however if the error message said something about access token or that it was possible to see a log with more information to be able to trouble shoot API integrations better.
I was misstaken in my previous post, the change we made that made it work again was that we changed from trying to upload to the root directory to instead upload to a named directory.