Trying to access the photos in the GraphQL API result in an error
See original GitHub issueOverview
- Issue type: Bug
- Summary: Trying to get the
photos
in the GraphQL API result in an error - Platform: Desktop/web, iOS
Description
When you try to access photos
in the graphQL api it return an error:
GraphQLScalarType' object has no attribute 'graphene_type
Endpoint
Fusion GraphQL API
Sample Request
{
business(id: "garaje-san-francisco") {
photos
}
}
You can try this request in the Yelp Graphiql console: https://www.yelp.com/developers/graphiql?query={ business(id%3A "garaje-san-francisco") { photos } }
Response
{
"errors": [
{
"message": "'GraphQLScalarType' object has no attribute 'graphene_type'",
"locations": [
{
"line": 3,
"column": 5
}
]
}
],
"data": {
"business": {
"photos": null
}
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Full Stack Error Handling with GraphQL and Apollo
If networkError is present in your response, it means your entire query was rejected, and therefore no data was returned. For example, the ......
Read more >Can't display images sourced from GraphQL, error [gatsby ...
log(project) is working fine with displaying all entries, but I see in the console this error react.development.js:220 Warning: Failed prop type ...
Read more >Error Handling in GraphQL - DEV Community
The simplest type of error that you can get is when you in example try to use an operation that's not present in...
Read more >Creating Good API Errors in REST, GraphQL and gRPC
This is often in the response body, using JSON or whatever data format the ... Whenever possible try to avoid creating an API...
Read more >GraphQL Content API - Contentful
To prevent this error, make sure the field IDs you're using on each content type cannot result in the same GraphQL field name....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Tests and test queries are looking good now. Thanks again @PhilippeRiegert for opening this issue and @pbadeer for confirming.
Hi @PhilippeRiegert thanks for filing this issue. Sounds like a pretty clear bug to me; we really appreciate these kinds of reports especially while the GraphQL API is in beta. I’ll file a ticket internally and we’ll look into it.