Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Axios 404 Error when Attempting to Publish #290

Open
BradyRyun opened this issue Jul 28, 2023 · 2 comments
Open

Axios 404 Error when Attempting to Publish #290

BradyRyun opened this issue Jul 28, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@BradyRyun
Copy link

BradyRyun commented Jul 28, 2023

Version: 1.6.3

I am able to run the login with the same user credentials. I get back a token, but NO user ID.
When I run getUserIDFromUsername(username) I do receive a user ID back.
What could be wrong here?

AxiosError: Request failed with status code 404

  const client = new ThreadsAPI({
    username: user.instagram_username,
    password: user.instagram_password
  })
  console.log(content)
  try {
    const result = await client.publish({
      text: content
    })
catch(e) {
   console.log(e)
}
headers: AxiosHeaders {
  Accept: 'application/json, text/plain, */*',
  'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
  'User-Agent': 'Barcelona 291.0.0.31.111 Android',
  Authorization: 'Bearer IGT:2:<redacted>',
  'Content-Length': '510',
  'Accept-Encoding': 'gzip, compress, deflate, br'
},
method: 'post',
url: 'https://i.instagram.com/api/v1/media/configure_text_only_post/',

I have verified that username and password are being passed properly to client initialization.

@junhoyeo junhoyeo added the bug Something isn't working label Aug 1, 2023
@pmessineo
Copy link

I actually have the same problem. Is it because they changed the API ? @junhoyeo

@tiagobbraga
Copy link

The same!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants