bartve / disconnect

An easy to use Node.js client with OAuth support to connect with the discogs.com API v2.0
MIT License
453 stars 79 forks source link

Get image error #41

Closed silveur closed 7 years ago

silveur commented 7 years ago

Getting images through the getImage function doesn't work anymore and returns the following:

{ DiscogsError at IncomingMessage.passData (/Users/silvereletellier/dev/ChezEmile/node_modules/disconnect/lib/client.js:212:23) at emitNone (events.js:91:20) at IncomingMessage.emit (events.js:188:7) at endReadableNT (_stream_readable.js:974:12) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickDomainCallback (internal/process/next_tick.js:128:9) statusCode: 500, message: 'Unknown error.' }

'\n\n\nFastly error: unknown domain api.discogs.com\n\n\n

Fastly error: unknown domain: api.discogs.com. Please check that this domain has been added to a service.'

Furthermore when I try and download an image with the request module I get the following http response:

503 - Service Unavailable

Any idea?

bartve commented 7 years ago

Does https://api.discogs.com/ resolve in the browser for you?

Edit: I also seem to be having trouble authenticating through OAuth which used to work fine. Could be related...

silveur commented 7 years ago

It does resolve for me yeah... no idea about oAuth but that doesnt sound good neither. Will post on the discogs forum and see whats up

bartve commented 7 years ago

Quick fix: On line 161 replace Host': this.config.host, with 'Host': urlParts.host || this.config.host,

I hope to be able to release this to npm soon. Not much time at the moment.

bartve commented 7 years ago

Managed to squeeze a release in. Should be fixed now.