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
Error --> status = 400, code = InvalidVolume.NotFound, Reason = The volume 'vol-12345678' does not exist., request_id = 0242e490-a48b-462e-810b-61f708e51606
Observations:
For the same call as before we get the same type of error mapping than with aws ec2 with an error code (InvalidVolume.NotFound) along with a message (The volume 'vol-12345678' does not exist.)
Error code Oapi:
Command used:
osc-cli api --profile pdka1 DeleteVolume --VolumeId vol-12345678
In this case, we do find the same type of informations than previous calls, however, the actual content is different since we get a number as the error code (5064) and the message is short and not very informative. We could add another field to the mapping which will give a longer description and thus, more informations as to what exactly failed in the call. There's also the possibility of mapping the "Reason" field so that "InvalidResource" get replaced by a more useful message.
Here we get a number as the error code (5064) but also what we could have expected for Oapi, a short error message (InvalidResource) with another field containing a more detailed description of the error (The VolumeId 'Vol-12345678' doesn't exist.)
Solution(s):
I propose to map the Details with the Reason for oAPI and add a new field as CodeType to put the old Reason (as InvalidRessource)
The text was updated successfully, but these errors were encountered:
Context:
Oapi does not give all the informations on error like aws-cli or osc-cli does even though we need it.
Problem:
Error code AWS Ec2
Command used:
Error sent:
Observations:
We do get an error code (InvalidVolume.NotFound) with a message (The volume 'Vol-12345678' does not exist.) as expected.
Error code OSC_CLI FLU
Command used:
Error sent:
Observations:
For the same call as before we get the same type of error mapping than with aws ec2 with an error code (InvalidVolume.NotFound) along with a message (The volume 'vol-12345678' does not exist.)
Error code Oapi:
Command used:
Error sent:
Observations:
In this case, we do find the same type of informations than previous calls, however, the actual content is different since we get a number as the error code (5064) and the message is short and not very informative. We could add another field to the mapping which will give a longer description and thus, more informations as to what exactly failed in the call. There's also the possibility of mapping the "Reason" field so that "InvalidResource" get replaced by a more useful message.
Internal response format before osc_sdk parsing
Error sent:
Observations:
Here we get a number as the error code (5064) but also what we could have expected for Oapi, a short error message (InvalidResource) with another field containing a more detailed description of the error (The VolumeId 'Vol-12345678' doesn't exist.)
Solution(s):
I propose to map the Details with the Reason for oAPI and add a new field as CodeType to put the old Reason (as InvalidRessource)
The text was updated successfully, but these errors were encountered: