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

Meetup Client: Handle Errors better #564

Draft
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Draft

Conversation

dd32
Copy link
Member

@dd32 dd32 commented Feb 1, 2024

The Meetup GraphQL API can return a NULL response, when we'd usually expect an error to be returned.

An example of this is when a query is made to a non-existent group:

$client->get_group_details( 'A-Group-That-No-Exist' );

This has a flow-on effect to uses of this client, as a non-false/non-error result is returned, that's often just [ 'groupByUrlname' => NULL ]

The Meetup GraphQL API can return a `NULL` response, when we'd usually expect an error to be returned.

An example of this is when a query is made to a non-existent group:
```
$client->get_group_details( 'A-Group-That-No-Exist' );
```

This has a flow-on effect to uses of this client, as a non-false/non-error result is returned, that's often just `[ 'groupByUrlname' => NULL ]`
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.

1 participant