narayan954 / dummygram

DummyGram is a social media application where we have posts, stories, chat, friends, authentication, comment, delete, share and like feature. It uses ReactJs in the frontend for the UI and Firebase for the backend storing the users, posts, stories and comments.
https://narayan954.github.io/dummygram/
MIT License
76 stars 189 forks source link

Error when visiting someone's or my profile #1297

Closed tushar-daiya closed 7 months ago

tushar-daiya commented 7 months ago

Description

There is an error thrown whenever I visit my or someone's profile.

Steps to reproduce

Login in the dummygram website and then click on the menu near your profile pic and click on profile.. It throws an error and returns 404 not found page

Screenshots

image

Desktop (please complete the following information)

Windows 11. Google Chrome

Smartphone (please complete the following information)

No response

Additional information

No response

Record

Optional information

No response

github-actions[bot] commented 7 months ago

Hello tushar-daiya! Thank you for raising this issue! 😊 Your contribution is valuable to us! 😊

Please make sure to follow our Contributing Guidelines. 💪🏻

Our reviewers shall carefully assess the issue and reach out to you soon! 😇 We appreciate your patience!

github-actions[bot] commented 7 months ago

Hi there tushar-daiya!, welcome to Dummygram :)

narayan954 commented 7 months ago

Description

There is an error thrown whenever I visit my or someone's profile.

Steps to reproduce

Login in the dummygram website and then click on the menu near your profile pic and click on profile.. It throws an error and returns 404 not found page

Screenshots

image

Desktop (please complete the following information)

Windows 11. Google Chrome

Smartphone (please complete the following information)

No response

Additional information

No response

Record

  • [x] I agree to follow this project's Code of Conduct
  • [x] I have checked the existing issues
  • [x] I am a participant of a program
  • [x] I want to work on this issue

Optional information

No response

You might be getting an error when visiting deleted profiles. Can you check active ones? About your profile issue, seems like there's an issue with signup method you used, can you please share your signup method as well?

tushar-daiya commented 7 months ago

I signed up using the default method.. and the error is only showing when the url has the username in it if it have the user id then the profile is shown

narayan954 commented 7 months ago

I signed up using the default method.. and the error is only showing when the url has the username in it if it have the user id then the profile is shown

As per the implementation, we assign user id as the default username. There must be some error in between this conversion and accessing the profile information. Can you try to resolve it? Thanks a lot for raising the issue.