question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to access the photos in the GraphQL API result in an error

See original GitHub issue

Overview

  • 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
dan98765commented, May 9, 2018

Tests and test queries are looking good now. Thanks again @PhilippeRiegert for opening this issue and @pbadeer for confirming.

3reactions
dan98765commented, May 9, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found