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.

Revise `test_get_job_includes` and endpoint

See original GitHub issue

What is the expected behavior?

The test_get_job_includes has been failing in a number of recent travis runs for the premium accounts:

  File "/home/travis/build/Qiskit/qiskit-ibmq-provider/qiskit/providers/ibmq/api/ibmqconnector.py", line 194, in get_job
    if ('result' in qasm) and ('data' in qasm['result']):
TypeError: argument of type 'NoneType' is not iterable

The endpoint has been slightly flaky for a while - we should investigate and coordinate with the API team for a proper solution, and ensure that:

  • the endpoint is working for all environments + both old api and new api
  • the test use the same and correct fields (for connector we use deleted, for client we use shots)
  • the test also exercises include_fields
  • the function handles unexpected cases gracefully (excluding/including non-existent fields, etc)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jyu00commented, Jun 11, 2019

get_job with include_fields=['status'] is now failing with a generic error for v1 api. It appears to be the only field failing, and exclude_fields['status'] works.

0reactions
diego-plan9commented, Oct 9, 2019

Fixed via #380

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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