🔧 fix(Shared Links): Handling Shared Link Errors (#3118)

* refactor: add error handling in Share model

* refactor: add error handing to API routers

* refactor: display error message when API response is an error

* chore: remove unneccesary JSON.stringify

* chore: revert unintended changes

---------

Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
Yuichi Oneda 2024-06-21 07:12:37 -07:00 committed by GitHub
parent 3172381bad
commit 4e4de88faa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 323 additions and 75 deletions

View file

@ -142,6 +142,8 @@ export default {
com_ui_create_link: 'Crear enlace',
com_ui_share_link_to_chat: 'Compartir enlace en el chat',
com_ui_share_error: 'Hubo un error al compartir el enlace del chat',
com_ui_share_retrieve_error: 'Hubo un error al eliminar el enlace compartido.',
com_ui_share_delete_error: 'Hubo un error al eliminar el enlace compartido.',
com_ui_share_create_message:
'Tu nombre y cualquier mensaje que agregues después de compartir se mantendrán privados.',
com_ui_share_created_message:
@ -1124,6 +1126,14 @@ export const comparisons = {
english: 'Share link to chat',
translated: 'Compartir enlace en el chat',
},
com_ui_share_retrieve_error: {
english: 'There was an error deleting the shared link.',
translated: 'Hubo un error al eliminar el enlace compartido.',
},
com_ui_share_delete_error: {
english: 'There was an error deleting the shared link.',
translated: 'Hubo un error al eliminar el enlace compartido.',
},
com_ui_share_error: {
english: 'There was an error sharing the chat link',
translated: 'Hubo un error al compartir el enlace del chat',