Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when uploading avatar, storage server has error and new avatar not rendered on page #43

Closed
McPizza0 opened this issue Jan 31, 2024 · 7 comments · Fixed by #51
Closed
Assignees
Labels
bug Something isn't working ready for fix/implementation this issue is ready to be worked on

Comments

@McPizza0
Copy link
Member

McPizza0 commented Jan 31, 2024

when uploading a new avatar, the upload does succeed and the image is accessible
but the avatar on the page does not refresh to new value

prev error (fixed) the storage server logs out an error ``` @uninbox/storage:dev: [nitro] [uncaughtException] TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object @uninbox/storage:dev: at write_ (node:_http_outgoing:879:11) @uninbox/storage:dev: at ServerResponse.end (node:_http_outgoing:1030:5) @uninbox/storage:dev: at Immediate. (file:///Users/omar/code/UnInbox/node_modules/.pnpm/h3@1.10.1/node_modules/h3/dist/index.mjs:682:24) @uninbox/storage:dev: at process.processImmediate (node:internal/timers:478:21) { @uninbox/storage:dev: code: 'ERR_INVALID_ARG_TYPE' @uninbox/storage:dev: } ```
Error is fixed by https://github.com//pull/48
@McPizza0 McPizza0 added bug Something isn't working pending triage these issues are not ready to be worked on yet labels Jan 31, 2024
@McPizza0 McPizza0 changed the title when uploading avatar, storage server has console error when uploading avatar, storage server has error and new avatar not rendered on page Jan 31, 2024
@Praashh
Copy link

Praashh commented Jan 31, 2024

I think, This could be due to incorrect handling of the data during processing or transmission, can I work on this issue or someone from team is already working upon that?

@McPizza0
Copy link
Member Author

McPizza0 commented Feb 1, 2024

@Praashh you currently have another issue assigned

@Praashh
Copy link

Praashh commented Feb 1, 2024

Got it, will fix that first

@skushagra9
Copy link
Contributor

Hey , I am interested to solve this issue

@McPizza0
Copy link
Member Author

McPizza0 commented Feb 1, 2024

the error will be fixed by #48
otherwise the avatar refresh is good to go

@McPizza0 McPizza0 added pending triage these issues are not ready to be worked on yet ready for fix/implementation this issue is ready to be worked on and removed pending triage these issues are not ready to be worked on yet labels Feb 1, 2024
@McPizza0
Copy link
Member Author

McPizza0 commented Feb 1, 2024

we should also add:
refreshNuxtData('getUserSingleProfileNav') & refreshNuxtData('getUserOrgsNav') to the end of the selectedFilesOnChange functions when saving the profiles for users & orgs respectivly
this will refresh the avatars in the main app nav menu
image

@skushagra9
Copy link
Contributor

skushagra9 commented Feb 2, 2024

can I work on this, as pending triage label is still there?

@McPizza0 McPizza0 removed the pending triage these issues are not ready to be worked on yet label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready for fix/implementation this issue is ready to be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants