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

Fix bug where user avatar is not uploaded on user creation #128

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

georgimld
Copy link
Contributor

@georgimld georgimld commented Nov 13, 2024

User avatar is not uploaded when the user is created, the fetch request to upload the image causes an error, probably because of the fetch library setting the multi-part/form-data boundry in the Content-Type header.

Using the undici library instead of node fetch for the upload request solves the problem.

Closes #126

@georgimld georgimld force-pushed the 126-create-innouser-bug branch 2 times, most recently from 24afa74 to f3009a7 Compare November 13, 2024 12:45
@georgimld georgimld changed the title fix: set logs for debugging Fix bug where user avatar is not uploaded on user creation Nov 19, 2024
@georgimld georgimld marked this pull request as ready for review November 19, 2024 08:37
@georgimld georgimld merged commit 1839be7 into main Nov 19, 2024
6 checks passed
@georgimld georgimld deleted the 126-create-innouser-bug branch November 19, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when creating the InnoUser
2 participants