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
In my project, I use OCI object storage, while running on local env. everything is working fine, but on deployment, I am receiving errors like this
Request failed with Exception : [object Object]
Retrying request -> Total Attempts : 1, Retrying after 1.686 seconds...
I am using 'oci-sdk' package for JS/TS
After digging into the package under oci-common/lib/retrier.js I found in line 179 console.warn(`Request failed with Exception : ${lastKnownError}\nRetrying request -> Total Attempts : ${waitContext.attemptCount}, Retrying after ${delayTime} seconds...`);
this should be updated to console.warn(`Request failed with Exception : ${JSON.stringify(lastKnownError, null, 2)}\nRetrying request -> Total Attempts : ${waitContext.attemptCount}, Retrying after ${delayTime} seconds...`);
because in string literal if we try to print any object it shows as [object Object]
This can act as a blocker in the development because proper error is not shown.
Thank you
The text was updated successfully, but these errors were encountered:
kunarkkhewal
changed the title
Unable to see error of retrier in OCI object storage
Unable to see error of retrier in OCI SDK
Jun 26, 2024
jyotisaini
added
the
SDK
Issue pertains to the SDK itself and not specific to any service
label
Aug 5, 2024
In my project, I use OCI object storage, while running on local env. everything is working fine, but on deployment, I am receiving errors like this
I am using 'oci-sdk' package for JS/TS
After digging into the package under
oci-common/lib/retrier.js
I found in line 179console.warn(`Request failed with Exception : ${lastKnownError}\nRetrying request -> Total Attempts : ${waitContext.attemptCount}, Retrying after ${delayTime} seconds...`);
this should be updated to
console.warn(`Request failed with Exception : ${JSON.stringify(lastKnownError, null, 2)}\nRetrying request -> Total Attempts : ${waitContext.attemptCount}, Retrying after ${delayTime} seconds...`);
because in string literal if we try to print any object it shows as
[object Object]
This can act as a blocker in the development because proper error is not shown.
Thank you
The text was updated successfully, but these errors were encountered: