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

Example config.yaml: postprocessed_with_variables route fails when result is empty #30

Open
thomas-delva opened this issue Aug 28, 2020 · 1 comment
Assignees

Comments

@thomas-delva
Copy link

thomas-delva commented Aug 28, 2020

Error description

In the config.yaml, when a non-existent actor gets passed to the route /movies/{actor}/postprocessed_with_variables, a 500 error is thrown:

debug 2020-08-28T12:47:25.992Z : {"data":{"query":"{ id @single ... on Film { starring(label: \"Bradd Pitt\") @single }}"}}
verbose 2020-08-28T12:47:26.001Z : {"data":[{}]}
Pipe module error: Cannot read property 'match' of undefined
info 2020-08-28T12:47:26.002Z : GET /movies/Bradd%20Pitt/postprocessed_with_variables 500 9.909 ms - 1084

How to reproduce

  1. Start Walder version 2.0.2 with the command yarn start -c example/config.yaml -l debug --no-cache
  2. Surf to http://localhost:3000/movies/Bradd%20Pitt/postprocessed_with_variables (Notice Brad Pitt is misspelled.)
@thomas-delva thomas-delva changed the title Example config.yaml: postprocessed_with_variables route fails when result is empty Example config.yaml: postprocessed_with_variables route fails when result is empty Aug 28, 2020
@pheyvaer
Copy link
Collaborator

This is seems like an issue with the GraphQL-LD library.

@pheyvaer pheyvaer self-assigned this Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants