Comments (7)
changing it to throw err
instead of throw new Error(err)
may give a more useful stack trace
from plugapi.
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.
Dang, was hoping for a stack trace that pointed to a line in client.js. guess not!
from plugapi.
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.
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.
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.
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)
- Errors in callback functions passed to playlist methods are mishandled HOT 2
- Should treat URLs as atoms when splitting long chat messages HOT 5
- Use ES6 Promise in place of callbacks HOT 5
- The advance event when last DJ finishes has djs.length == 2 HOT 2
- getPlaylists callback argument is not a RESTCallback HOT 6
- Chat events mentions are always [] HOT 3
- Duplicate advance event on skip (some times) HOT 2
- Playlist management functions some times silently fail HOT 5
- Cannot read property 'length' of undefined HOT 3
- addToWaitList throws 403 error when target user has no playlists HOT 3
- Errors trying to perform npm install plugapi HOT 2
- Error after connection with account without playlist HOT 2
- Not sure if playlist functions are working properly
- Unsupported events
- User.language is null HOT 2
- Room Description HOT 8
- Convert name to ID? HOT 8
- Have a bot.
- I'm using your api for a plug bot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugapi.