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
{{ message }}
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.
Describe the bug
I'm using [email protected] (tried imgur@next too) and every time I try uploading an image (tried file and base64, on both versions), I get a Response code 400 (Bad request) error.
Also, tslib is required and I had to install manually it after I installed imgur@next.
// banner.data is a base64 stringbanner=JSON.parse(req.body.banner)imgur.uploadBase64(banner.data).then((json)=>{console.log(json.link)}).catch((err)=>{console.log(err)})
Expected behavior
It should return a 200 response status.
Environment (please complete the following information):
Library version [e.g. 1.0.0]: 1.0.0
OS [e.g. macOS]: Windows 10
NodeJS version [e.g.14.16.0]: 14.16.1
Additional context
As I said, I also tried it with files, tried it with @next and tried multiple function types. It always returned a 400 response status.
The ID I provided is good, I checked it using this site and it successfully uploaded an image.
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm using
[email protected]
(triedimgur@next
too) and every time I try uploading an image (tried file and base64, on both versions), I get a Response code 400 (Bad request) error.Also,
tslib
is required and I had to install manually it after I installedimgur@next
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should return a 200 response status.
Environment (please complete the following information):
Additional context
As I said, I also tried it with files, tried it with
@next
and tried multiple function types. It always returned a 400 response status.The ID I provided is good, I checked it using this site and it successfully uploaded an image.
The text was updated successfully, but these errors were encountered: