- Issue created by @achap
- last update
9 months ago Composer require failure - last update
9 months ago Composer require failure - Status changed to Needs review
9 months ago 5:37am 14 February 2024 - last update
8 months ago Composer require failure - Issue was unassigned.
- achap 🇦🇺
Just ran into another error code from our remote service (429) so thought I would attempt to make this a little bit more flexible rather than just logging specific error codes. Unfortunately I couldn't find much documentation on OpenSearch error responses so it's a little hard to test.
This error response from OpenSearch:
Array ( [_index] => index_a [_id] => entity:node/152691:en-AU [status] => 429 [error] => Array ( [type] => status_exception [reason] => Error from remote service: { "error": { "message": "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.", "type": "insufficient_quota", "param": null, "code": "insufficient_quota" } } ) )
Ends up looking like this in the logs:
Error from remote service: { "error": { "message": "Incorrect API key provided: foobar. You can find your API key at https://platform.openai.com/account/api-keys.", "type": "invalid_request_error", "param": null, "code": "invalid_api_key" } } for id: entity:node/189871:en-AU. Status code: 401
I updated the log message to include the status code and also changed "for index" to "for id" since it is logging the id of the item not the index it's in.
I'm getting some composer errors in my pipeline but I think it's unrelated to this change:
$ composer install $COMPOSER_EXTRA No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information. Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - drupal/core 10.2.x-dev conflicts with drush/drush <12.4.3. - drupal/core-recommended 10.2.x-dev requires drupal/core 10.2.x-dev -> satisfiable by drupal/core[10.2.x-dev]. - Root composer.json requires drupal/core-recommended 10.2.x-dev -> satisfiable by drupal/core-recommended[10.2.x-dev]. - Root composer.json requires drush/drush ^11.0 -> satisfiable by drush/drush[11.0.0-rc1, ..., 11.x-dev].
- 🇦🇺Australia kim.pepper 🏄♂️🇦🇺Sydney, Australia
kim.pepper → made their first commit to this issue’s fork.
- last update
8 months ago Composer require failure - Status changed to Fixed
8 months ago 9:21pm 26 March 2024 Automatically closed - issue fixed for 2 weeks with no activity.