You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Hard to know the rationale if any error in OpenAI API(s)
For example, I realized I've been using OpenAI credentials that got expired, But took me very long time to find that's the error. Reason because when we communicate ingest failure in different places (e.g: in partial re-cap section) with following code,
which returns more clear message why the ingest failed.
panic: [connection to: OpenAI API failed with status: 429 error: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.]
The text was updated successfully, but these errors were encountered:
Page URL
https://weaviate.io/developers/weaviate/quickstart#client-connection-code
User feedback
Couple of feedbacks
1. Handling the wrong
error
variableIn the partial recap section, Below code has no value, as it is using wrong
err
variable from previous un-related code section.This should be something like
2. Hard to know the rationale if any error in OpenAI API(s)
For example, I realized I've been using OpenAI credentials that got expired, But took me very long time to find that's the error. Reason because when we communicate ingest failure in different places (e.g: in partial re-cap section) with following code,
It just prints something like this on the terminal.
panic: ([]*models.ErrorResponseErrorItems0) 0x1400000ecf0
And it's not helpful.
Instead we should tell the user actual error message that is part of
res.Result.Errors.Error.Message
. Something like thiswhich returns more clear message why the ingest failed.
panic: [connection to: OpenAI API failed with status: 429 error: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.]
The text was updated successfully, but these errors were encountered: