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

Explore Events page is failing to fetch Events. #2307

Closed
Azad99-9 opened this issue Jan 5, 2024 · 9 comments · Fixed by #2308
Closed

Explore Events page is failing to fetch Events. #2307

Azad99-9 opened this issue Jan 5, 2024 · 9 comments · Fixed by #2308
Assignees
Labels
bug Something isn't working

Comments

@Azad99-9
Copy link

Azad99-9 commented Jan 5, 2024

Describe the bug
Explore Events page not working properly.
The Explore Events page fails to retrieve events from the server, consistently displaying an empty list message on the screen despite the existence of events in the database.

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to Explore Events page.
  2. Refresh the page / Create an event.

Expected behavior
The created events / existing events from database should be shown on screen in a vertical scrolling fashion.

Actual behavior
empty list message is being shown always, despite the events present in the database.

Screenshots
Actual
Screenshot_20240106-041638

Expected
Screenshot_20240106-041619

Additional details

  1. The Details of the Event are also not properly being fetched into the EventCard and Event Page.

Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship #359

@Azad99-9 Azad99-9 added the bug Something isn't working label Jan 5, 2024
@github-actions github-actions bot added the unapproved Unapproved, needs to be triaged label Jan 5, 2024
@Azad99-9
Copy link
Author

Azad99-9 commented Jan 5, 2024

@noman2002 @Cioppolo14 @Kevoniat please assign me this issue, I would like to work on this.

@Azad99-9 Azad99-9 changed the title Bug Report Explore Events page is not fetching Events properly. Jan 5, 2024
@Azad99-9 Azad99-9 changed the title Explore Events page is not fetching Events properly. Explore Events page is failing to fetch Events. Jan 5, 2024
@Cioppolo14 Cioppolo14 removed the unapproved Unapproved, needs to be triaged label Jan 6, 2024
@Dante291
Copy link

Dante291 commented Jan 6, 2024

#2195

This issue already exists and someone is working on it, the reason why events are not getting fetched because of same problem why you cannot create an event which is related to firebase. Right when app initialise if you check debug console you could see graphql exception related to this.

@Azad99-9
Copy link
Author

Azad99-9 commented Jan 6, 2024

@Dante291 Please understand This issue is different from the issue you have mentioned.

  1. The issue you have mentioned solely focuses on Failure of creating a new event.
  2. This issue focuses on failure of fetching the events existing in the database.
  3. Try creating an Event through admin panel and then try to find it in explore events page. It's not possible to see the created event in the explore events page
    But it's visible in admin panel.

@Dante291
Copy link

Dante291 commented Jan 6, 2024

@Azad99-9 This is the exception you get when you try to make a new event

image

and this is the exception when you fetch events

image

which are basically same, this exception is occurring due to some error related to firebase.

You could work on this though, this will resolve both issues ig.

@Dante291
Copy link

Dante291 commented Jan 6, 2024

@Dante291 Please understand This issue is different from the issue you have mentioned.

  1. The issue you have mentioned solely focuses on Failure of creating a new event.
  2. This issue focuses on failure of fetching the events existing in the database.
  3. Try creating an Event through admin panel and then try to find it in explore events page. It's not possible to see the created event in the explore events page
    But it's visible in admin panel.

Yeah, event is getting created successfully but the main problem is with fetching ig so basically #2195 this issue should be about fetching of events is giving exception due to firebase?? maybe this exception is occurring because we are using same query to fetch events just after making a new event (which is created successfully).

@Dante291
Copy link

Dante291 commented Jan 6, 2024

@Dante291 I am working with @Abhisheksainii on this.

I figured out the root cause of the problem by some lil debugging

Screenshot 2024-01-06 130842

Screenshot 2024-01-06 130820

I think the problem is with fetchOrgEvents query (it is stated as mutation, it should be query not mutation) which may be related to backend side ig.

@Abhisheksainii
Copy link

@Dante291 nice work bro. This will surely help the backend developer to resolve the issue

@Dante291
Copy link

Dante291 commented Jan 6, 2024

@Dante291 nice work bro. This will surely help the backend developer to resolve the issue

No ig the issue is with fetchOrgEvents query only because in admin portal events are getting fetched successfully, so it might not be a problem related to backend but with the query only, you guys could further work on this to find the main cause and if its the query do update it and ig that will fix the problem.

@imshivam-gupta
Copy link

@Dante291 Yes you are right I solved an issue earlier in which comments were not visible, initially I thought it was backend issue but then I realized I was able to fetch the comments by just modifying the query. Events can be fetched in a similar way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants