Giter VIP home page Giter VIP logo

Comments (7)

goto-bus-stop avatar goto-bus-stop commented on August 12, 2024

changing it to throw err instead of throw new Error(err) may give a more useful stack trace

from plugapi.

mortenn avatar mortenn commented on August 12, 2024

Doesn't really seem that much more helpful to me:

.../node_modules/plugapi/lib/client.js:625
                                throw err;
                                ^

Error: Response code 403 (FORBIDDEN)
    at stream.catch.then.data (.../node_modules/got/index.js:372:13)
    at process._tickCallback (internal/process/next_tick.js:109:7)
{}
error: Forever detected script exited with code: 1
error: Script restart attempt #2
14:14:14s 427ms [Info]      [PlugAPI]       Running plugAPI v5.0.0

from plugapi.

goto-bus-stop avatar goto-bus-stop commented on August 12, 2024

Dang, was hoping for a stack trace that pointed to a line in client.js. guess not!

from plugapi.

mortenn avatar mortenn commented on August 12, 2024

Unfortunately, information about the call stack that called _sendRest gets lost due to the async nature of the call. I suppose logging the value of opts on error could help..

from plugapi.

mortenn avatar mortenn commented on August 12, 2024

The request url was https://plug.dj/_/booth and err contains this:

{"name":"HTTPError","host":"plug.dj","hostname":"plug.dj","method":"POST","path":"/_/booth","protocol":"https:","url":"https://plug.dj/_/booth","statusCode":403,"statusMessage":"FORBIDDEN","headers":{"content-type":"application/json","date":"Thu, 03 May 2018 12:52:56 GMT","server":"nginx/1.14.0","set-cookie":["session=XXX; Expires=Sat, 02-Jun-2018 12:52:56 GMT; Secure; HttpOnly; Path=/"],"content-length":"145","connection":"keep-alive"}}

from plugapi.

mortenn avatar mortenn commented on August 12, 2024

Just got one for https://plug.dj/_/playlists/9084662/media/delete
This seems to confirm my suspicion that this is some sort of rate limiting issue.

from plugapi.

mortenn avatar mortenn commented on August 12, 2024

After doing some research, this is related to trying to delete a song that is being played and joining the booth with no songs to play.

from plugapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.