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

[BUG] To fix Fetch Request Call to get all newsFeed in case of no organization #659

Closed
sumitra19jha opened this issue Apr 14, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sumitra19jha
Copy link
Contributor

Issue Description:

If user is part of no organisation at all the fetch request call shall not be executed

Issue Severity:

Low

Observed Behaviour:

I/flutter (18499): ClientException: Unhandled Failure Invalid argument(s): No host specified in URI nullgraphql I/flutter (18499): 1 I/flutter (18499): http://talawa-graphql-api.herokuapp.com/graphql/talawa/ E/flutter (18499): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: GraphQL Errors: E/flutter (18499): Cast to ObjectId failed for value "null" at path "organization" for model "Post": Undefined location E/flutter (18499): #0 ApiFunctions.gqlquery package:talawa/utils/apiFuctions.dart:30 E/flutter (18499): <asynchronous suspension> E/flutter (18499): #1 _NewsFeedState.getPosts package:talawa/…/newsfeed/newsfeed.dart:75 E/flutter (18499): <asynchronous suspension> E/flutter (18499):

Expected Behaviour:

No error shall be displayed

Steps to reproduce issue:

  1. Open app
  2. Go to the news feed
  3. Make sure no organisation is selected

Does this issue need immediate attention?

No

Are you willing to work on this issue:

Yes

@github-actions github-actions bot added invalid This doesn't seem right unapproved Unapproved, needs to be triaged labels Apr 14, 2021
@sumitra19jha sumitra19jha changed the title To fix Fetch Request Call to get all newsFeed in case of no organization [BUG] To fix Fetch Request Call to get all newsFeed in case of no organization Apr 14, 2021
@Sagar2366 Sagar2366 added bug Something isn't working and removed invalid This doesn't seem right unapproved Unapproved, needs to be triaged labels Apr 15, 2021
Ayush0Chaudhary pushed a commit to Ayush0Chaudhary/talawa that referenced this issue Mar 29, 2023
Ayush0Chaudhary pushed a commit to Ayush0Chaudhary/talawa that referenced this issue Mar 29, 2023
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

No branches or pull requests

2 participants