Can't upload file
popeyebot opened this issue · 3 comments
Yesterday you changed the api variable and remove the first "/"
I want to upload image and I can see in lib/transport upload function there is "/v1/uploads'"
When I remove the first "/", I can send the request but I get this error :
{ FetchError: invalid json response body at https://photoslibrary.googleapis.com/v1/uploads reason: Unexpected token C in JSON at position 0
at C:\Users\rig2\node_modules\ky-universal\node_modules\node-fetch\lib\index.js:272:32
at process._tickCallback (internal/process/next_tick.js:68:7)
message:
'invalid json response body at https://photoslibrary.googleapis.com/v1/uploads reason: Unexpected token C in JSON at position 0',
type: 'invalid-json' }
But now I can create album :)
Ouch! Will take a look at this as soon as I get home. Guess we should have been a bit more careful when moving to ky
@popeyebot fixed! with v0.3.3
thank you for pointing out these issues. Will be shortly adding extensive testing so that this doesn't happen in the future.