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'?
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'?