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

Axios 404 Error when Attempting to Publish #290

@BradyRyun

Description

@BradyRyun

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions