Skip to content

[bug] error does not exist on type TwitterApiErrorData #521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
timb-103 opened this issue Mar 15, 2024 · 0 comments
Open

[bug] error does not exist on type TwitterApiErrorData #521

timb-103 opened this issue Mar 15, 2024 · 0 comments

Comments

@timb-103
Copy link

When we get the error of uploading an image greater than 5MB, we get a 400 error but it doesn't contain the standard error structure in your library, instead it has a data.error that includes a message similar to "The image is greater than 5MB".

Is this a new response, or how can we map it into your error handling? It doesn't have a type either so it's throwing a ts error. Property 'error' does not exist on type 'TwitterApiErrorData'. Did you mean 'errors'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant