Issues with imgur?


#1

so i am getting this error


  <rejected> { ParseError: Unexpected token < in JSON at position 0 in "https://imgur.com/r/marvelmemes/hot.json": 

<!doctype html>

<html lang="en">

<head>

    <meta http-equiv="content-type" c...

    at stream.catch.then.data (/rbd/pnpm-volume/5c4f3043-faa8-4f56-8ee3-4da9829839c8/node_modules/.registry.npmjs.org/got/6.7.1/node_modules/got/index.js:118:14)

    at <anonymous>

    at process._tickCallback (internal/process/next_tick.js:188:7)

  message: 'Unexpected token < in JSON at position 0 in "https://imgur.com/r/marvelmemes/hot.json": \n<!doctype html>\n<html lang="en">\n<head>\n    <meta http-equiv="content-type" c...',

  host: 'imgur.com',

  hostname: 'imgur.com',

  method: 'GET',

  path: '/r/marvelmemes/hot.json',

  statusCode: 503,

  statusMessage: 'Service Unavailable' } }  reason:  { ParseError: Unexpected token < in JSON at position 0 in "https://imgur.com/r/marvelmemes/hot.json": 

<!doctype html>

<html lang="en">

<head>

    <meta http-equiv="content-type" c...

    at stream.catch.then.data (/rbd/pnpm-volume/5c4f3043-faa8-4f56-8ee3-4da9829839c8/node_modules/.registry.npmjs.org/got/6.7.1/node_modules/got/index.js:118:14)

    at <anonymous>

    at process._tickCallback (internal/process/next_tick.js:188:7)

  message: 'Unexpected token < in JSON at position 0 in "https://imgur.com/r/marvelmemes/hot.json": \n<!doctype html>\n<html lang="en">\n<head>\n    <meta http-equiv="content-type" c...',

  host: 'imgur.com',

  hostname: 'imgur.com',

  method: 'GET',

  path: '/r/marvelmemes/hot.json',

  statusCode: 503,

  statusMessage: 'Service Unavailable' }

when using request with GET method in order to get image link from imgur error 503


#2

Anyone can help me about this issue?


#3

Seems like a problem with the api itself.


#4

This doesn’t working today??


#5

i think so, maybe the website has smth like a status page so you can check if the api is working or not


#6

Well that’s working correctly already some options works other not


#7

This isn’t fixed yet this is a host error so it’s may be due to issues with either glitch or imgur ??


#8

Let us know the project name and we’ll take a look. If your project is private, either make it public temporarily or DM me a join link so we can view the code. Thanks.


#9

It looks like the API is expecting JSON, and you’re sending an HTML file.


#10

This is issue of imgur server already fixed!