Giter VIP home page Giter VIP logo

Comments (11)

SimonHoiberg avatar SimonHoiberg commented on May 18, 2024 4

@vasanthdeveloper @pbteja1998
Fixed in version 1.1.1 🙌
Thanks a lot for your help, guys!

from twitter-api-client.

pbteja1998 avatar pbteja1998 commented on May 18, 2024 1

This is working for me in postman. But when tried to update it using this package, I am getting {statusCode: 431, data: ''}, not 400.

from twitter-api-client.

SimonHoiberg avatar SimonHoiberg commented on May 18, 2024

Thanks a lot for creating this very detailed issue, @vasanthdeveloper.
We will take a look at this asap!

from twitter-api-client.

vsnthdev avatar vsnthdev commented on May 18, 2024

Thank you, I was actually in urgency as I had to open-source my project before the 8th of November as there's still a lot of work 😀

from twitter-api-client.

vsnthdev avatar vsnthdev commented on May 18, 2024

Here's a working copy of the request in Postman 👇
https://www.getpostman.com/collections/e460f5997d62ec0733fb

from twitter-api-client.

vsnthdev avatar vsnthdev commented on May 18, 2024

I hope, I didn't expose my API keys 😂

from twitter-api-client.

SimonHoiberg avatar SimonHoiberg commented on May 18, 2024

Alright, this is very helpful.
Thanks a lot. I'll be looking into this later today.

from twitter-api-client.

vsnthdev avatar vsnthdev commented on May 18, 2024

Thank you 🙏 if this works out, I'll be so happy 😃 as I will open-source the project I've worked on for weeks now.

from twitter-api-client.

SimonHoiberg avatar SimonHoiberg commented on May 18, 2024

There's still an issue with a pending promise.
Reopening this issue to investigate.

from twitter-api-client.

SimonHoiberg avatar SimonHoiberg commented on May 18, 2024

This is now solved in 1.2.0.
Also, I've changed to non-default export instead to resolve the problems with the require syntax.

from twitter-api-client.

vsnthdev avatar vsnthdev commented on May 18, 2024

Even though the cover image is updated the Promise never resolves, thus blocking the execution flow when awaited.

In the below code 👇 the console.log() never executes.

twitter.accountsAndUsers.accountUpdateProfileBanner({
    banner: fs.readFileSync('coverPage.png', { encoding: 'base64' })
}).then(() => {
    console.log('resolved!')
})

from twitter-api-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.