junhoyeo / threads-api

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.
https://threads.junho.io
MIT License
1.58k stars 135 forks source link

Login Error #139

Closed AnthonyASanchez closed 12 months ago

AnthonyASanchez commented 12 months ago

console.error [LOGIN] Failed to login TypeError: Cannot read properties of undefined (reading 'split')

AnthonyASanchez commented 12 months ago

This Is within the credentials test

sidgithub780 commented 12 months ago

@AnthonyASanchez I get the same error when trying to post to threads from an AWS lambda function

Screenshot 2023-07-12 at 9 55 04 PM
c4ei commented 12 months ago

.env USERNAME --> USER_NAME all same 6 file process.env.USERNAME --> process.env.USER_NAME

change try !!!!

AnthonyASanchez commented 12 months ago

@c4ei how would this fix it?

AnthonyASanchez commented 12 months ago

The retry fixed the issue, looks like it just needs to make multiple requests sometimes