breuerfelix / jinsta

javascript + instagram + algorithms
MIT License
60 stars 13 forks source link

403 Forbidden; login_required #8

Closed GaWr26 closed 4 years ago

GaWr26 commented 4 years ago
ineedfriends -u xxx -p xxx -s ./session.json
start running basefeed
(node:13008) UnhandledPromiseRejectionWarning: IgLoginRequiredError: POST /api/v1/feed/timeline/ - 403 Forbidden; login_required
    at Request.handleResponseError (/usr/lib/node_modules/ineedfriends/node_modules/instagram-private-api/dist/core/request.js:90:24)
    at Request.send (/usr/lib/node_modules/ineedfriends/node_modules/instagram-private-api/dist/core/request.js:49:28)
(node:13008) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:13008) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:13008) UnhandledPromiseRejectionWarning: IgLoginRequiredError: GET /api/v1/direct_v2/ranked_recipients/?mode=raven&query=&show_threads=true - 403 Forbidden; login_required
    at Request.handleResponseError (/usr/lib/node_modules/ineedfriends/node_modules/instagram-private-api/dist/core/request.js:90:24)
    at Request.send (/usr/lib/node_modules/ineedfriends/node_modules/instagram-private-api/dist/core/request.js:49:28)
(node:13008) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

Must have something to do with the special characters in my password. It replaces it with something from crontab. Maybe some quotes around the password might help?

breuerfelix commented 4 years ago

could you try it out with quotes ? or escaping ? or quotes and escaping ? :D

breuerfelix commented 4 years ago

i just changed alot, also somethings about session handling, could you update and try again please ? :)

GaWr26 commented 4 years ago

No luck Felix. I have a hyphen(-) in my password and this seems to mess it up. tried single and double quotes and even escaping

GaWr26 commented 4 years ago

Just changed my password to only alphanumeric and still get the same error.

Edit: Deleted my session.json and now it works. So seems it really must be the hyphen in my password...

vinigabriel commented 4 years ago

+1 from me

vinigabriel commented 4 years ago
jinsta -u "*****" -p "*****" -s ./session.json
start running basefeed
(node:2961) UnhandledPromiseRejectionWarning: IgLoginRequiredError: GET /api/v1/direct_v2/ranked_recipients/?mode=raven&query=&show_threads=true - 403 Forbidden; login_required
    at Request.handleResponseError (/usr/local/lib/node_modules/jinsta/node_modules/instagram-private-api/dist/core/request.js:90:24)
    at Request.send (/usr/local/lib/node_modules/jinsta/node_modules/instagram-private-api/dist/core/request.js:49:28)
(node:2961) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2961) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:2961) UnhandledPromiseRejectionWarning: IgLoginRequiredError: POST /api/v1/feed/timeline/ - 403 Forbidden; login_required
    at Request.handleResponseError (/usr/local/lib/node_modules/jinsta/node_modules/instagram-private-api/dist/core/request.js:90:24)
    at Request.send (/usr/local/lib/node_modules/jinsta/node_modules/instagram-private-api/dist/core/request.js:49:28)
(node:2961) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

In my username with the special characters "_", maybe this?

breuerfelix commented 4 years ago

i am currently changing the code so you can import the package and hard code the username / pw in your own nodejs file... that way we can determine where the error is :) maybe its the cli parser... i dont know yet :D

breuerfelix commented 4 years ago

try update :)

npm update -g jinsta

i fixed it now ! had the same problem on my machine and it works now :)

but if its still not working, could you try out the advanced configuration option and make a new issue ? cause this will be interesting then !

imkimchi commented 4 years ago

Same error her :( how do i fix it? not even working w advanced configuration


❯ jinsta -u **** -p **** -w ./jinsta_data 
info:    session expired, going for relogin 
info:    starting with timeline feed 
(node:25884) UnhandledPromiseRejectionWarning: IgLoginRequiredError: GET /api/v1/media/blocked/ - 403 Forbidden; login_required 
    at Request.handleResponseError (/home/imkimchi/.nvm/versions/node/v11.13.0/lib/node_modules/jinsta/node_modules/instagram-private-api/dist/core/request.js:93:24)
    at Request.send (/home/imkimchi/.nvm/versions/node/v11.13.0/lib/node_modules/jinsta/node_modules/instagram-private-api/dist/core/request.js:49:28)
(node:25884) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:25884) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:25884) UnhandledPromiseRejectionWarning: IgLoginRequiredError: POST /api/v1/feed/timeline/ - 403 Forbidden; login_required 
    at Request.handleResponseError (/home/imkimchi/.nvm/versions/node/v11.13.0/lib/node_modules/jinsta/node_modules/instagram-private-api/dist/core/request.js:93:24)
    at Request.send (/home/imkimchi/.nvm/versions/node/v11.13.0/lib/node_modules/jinsta/node_modules/instagram-private-api/dist/core/request.js:49:28)
(node:25884) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)