Androz2091 / insta.js

💬 Object-oriented library for sending and receiving messages via Instagram
138 stars 42 forks source link

How to fix 302 found error? #65

Open jakiepari opened 3 years ago

jakiepari commented 3 years ago

(node:4) UnhandledPromiseRejectionWarning: IgResponseError: POST /api/v1/accounts/msisdn_header_bootstrap/ - 302 Found;

I got this error and i dunno how to fix it. Can someone help me?

Chrom-Pharaoh commented 3 years ago

Yes i find way to fix it: go to node_modules then @androz2091/insta.js/src/structrures/Client.js then go to line 359 and delete it

jakiepari commented 3 years ago

Yes i find way to fix it: go to node_modules then @androz2091/insta.js/src/structrures/Client.js then go to line 359 and delete it

Thank you!

farihdzkyy commented 3 years ago

Yes i find way to fix it: go to node_modules then @androz2091/insta.js/src/structrures/Client.js then go to line 359 and delete it

but if in heroku how? In my vps Is working but not in heroku

Chrom-Pharaoh commented 3 years ago

Yes i find way to fix it: go to node_modules then @androz2091/insta.js/src/structrures/Client.js then go to line 359 and delete it

but if in heroku how? In my vps Is working but not in heroku

just copy insta.js folder from node modules and put in your directory and replace require("@androz2091/insta.js") with require("./insta.js")

Chrom-Pharaoh commented 3 years ago

Yes i find way to fix it: go to node_modules then @androz2091/insta.js/src/structrures/Client.js then go to line 359 and delete it

Thank you!

You're welcome

Androz2091 commented 3 years ago

Why is it working? It should not as you are not passing a state to the package right?