fa0311 / twitter-openapi-typescript

Implementation of Twitter internal API (Twitter graphql API) in TypeScript
https://www.npmjs.com/package/twitter-openapi-typescript
Other
73 stars 11 forks source link

ResponseError: Response returned an error code #69

Closed aegie4 closed 12 months ago

aegie4 commented 12 months ago

When I call getHomeLatestTimeline() or getTweetDetail() (and I assume any other api call) I get an error: ResponseError: Response returned an error code

It happens here: https://github.com/fa0311/twitter-openapi-typescript/blob/145a39cc1318c6015d2192d24f338f4a18a5477a/twitter-openapi-typescript-generated/src/runtime.ts#L140 For some reason response is {} (empty object)

I'm using the latest versions: twitter-openapi-typescript 0.0.19 twitter-openapi-typescript-generated 0.0.12

My code worked a week ago when I used twitter-openapi-typescript version 0.0.17

I'm using Deno.

fa0311 commented 12 months ago

This did not happen in my environment (node 18). Please check the updated documentation about the authentication process changed in twitter-openapi-typescript 0.0.19

aegie4 commented 12 months ago

I fixed the call to getClientFromCookies() according to the updated documentation and it works now. Thank you!