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
@colbyfayock If we want error statement in console only we can show it with console for the devs , or we can use toast with the statement for both devs and users to show it in the interface what do we want
hey @ayan-joshi the change was published to @cloudinary-util/util@4.0.0-beta.1
can you try upgrading that version on a branch from this repository and then you can integrate the new changes? you can then inspect the response, look for the error, and log it only in development mode
Activity
ayan-joshi commentedon Oct 3, 2024
@colbyfayock Hey can I work on this issue ?
colbyfayock commentedon Oct 3, 2024
all yours! let me know if you have any questions when trying to tackle it or if anything is unclear
ayan-joshi commentedon Oct 3, 2024
@colbyfayock I wanted to know the location of file which logs X-Cld-Error
colbyfayock commentedon Oct 3, 2024
this is where the error occurs and the polling check: https://github.com/cloudinary-community/next-cloudinary/blob/main/next-cloudinary/src/components/CldImage/CldImage.tsx#L99
however the polling that looks at the request response is inside: https://github.com/cloudinary-community/cloudinary-util/blob/4086730a5186b142a4c9afc15c1b199a3f738935/packages/util/src/lib/cloudinary.ts#L163
it would need to be a breaking change, but the solution may be to return information about the response in the catch statement
something along the lines of:
wdyt?
ayan-joshi commentedon Oct 3, 2024
@colbyfayock If we want error statement in console only we can show it with console for the devs , or we can use toast with the statement for both devs and users to show it in the interface what do we want
ayan-joshi commentedon Oct 3, 2024
@colbyfayock I feel like this should be the format of try catch with response ! ok between them for all type of cases
colbyfayock commentedon Oct 7, 2024
@ayan-joshi i think that solution makes sense! we could event return the following for the success path:
not sure the error as false is absolutely necessary but ill leave tht to your judgement
could you open a PR for that in the cloudinary-util repository?
ayan-joshi commentedon Oct 7, 2024
@colbyfayock okay sure I'll make the changes and create the pr for it ,
i need to create pr in both cloudinary-util and cloudinary-next right ??
ayan-joshi commentedon Oct 8, 2024
cloudinary-community/cloudinary-util#211
@colbyfayock
feat: Log X-Cld-Error header in dev mode (#211)
colbyfayock commentedon Oct 8, 2024
hey @ayan-joshi the change was published to
@cloudinary-util/util@4.0.0-beta.1can you try upgrading that version on a branch from this repository and then you can integrate the new changes? you can then inspect the response, look for the error, and log it only in development mode
let me know if you run into any issues!
ayan-joshi commentedon Oct 8, 2024
okay I'll try it and respond @colbyfayock
2 remaining items
colbyfayock commentedon Oct 11, 2024
no worries! just checking in on Issues to make sure people are still interested. thanks for the heads up!
colbyfayock commentedon Oct 15, 2024
@ayan-joshi i needed to merge in the beta to a stable release and htus needed to make this work, so handling this myself
chore(release): 6.15.0 [skip ci]
github-actions commentedon Oct 15, 2024
🎉 This issue has been resolved in version 6.15.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
ayan-joshi commentedon Oct 15, 2024
@colbyfayock really sorry that I couldn't make it with the time !
feat: Log x-cld-error on image error (cloudinary-community#553)
colbyfayock commentedon Oct 15, 2024
no worries! feel free to pick up another one if interested when you have time
ayan-joshi commentedon Oct 15, 2024
Yeah sure I'll
chore(release): 6.15.0 [skip ci]
chore(release): 7.0.0-beta.4 [skip ci]
github-actions commentedon Oct 15, 2024
🎉 This issue has been resolved in version 7.0.0-beta.4 🎉
The release is available on:
Your semantic-release bot 📦🚀