Title: JSONDecodeError while executing a search · Issue #2 · rocketreach/rocketreach_python · GitHub
Open Graph Title: JSONDecodeError while executing a search · Issue #2 · rocketreach/rocketreach_python
X Title: JSONDecodeError while executing a search · Issue #2 · rocketreach/rocketreach_python
Description: Hello, I have been unable to use the API to perform searches since yesterday. Every time I get the same error: requests.exceptions.JSONDecodeError: Expecting value: line 5 column 1 (char 4) Below is the test code I tried to use, taken di...
Open Graph Description: Hello, I have been unable to use the API to perform searches since yesterday. Every time I get the same error: requests.exceptions.JSONDecodeError: Expecting value: line 5 column 1 (char 4) Below i...
X Description: Hello, I have been unable to use the API to perform searches since yesterday. Every time I get the same error: requests.exceptions.JSONDecodeError: Expecting value: line 5 column 1 (char 4) Below i...
Opengraph URL: https://github.com/rocketreach/rocketreach_python/issues/2
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JSONDecodeError while executing a search","articleBody":"Hello, I have been unable to use the API to perform searches since yesterday. Every time I get the same error: `requests.exceptions.JSONDecodeError: Expecting value: line 5 column 1 (char 4)`\r\n\r\nBelow is the test code I tried to use, taken directly from the API documentation. \r\n```\r\nrr = rocketreach.Gateway(api_key='{API_KEY}')\r\ns = rr.person.search().filter(current_employer='Acme', current_title='CEO')\r\nresult = s.execute()\r\nfor person in result.people:\r\n print(person)\r\n```\r\nAnd below is the traceback of the exception that is thrown.\r\n```\r\nTraceback (most recent call last):\r\n File \"/Users/user/PycharmProjects/CRM_lambda/venv/lib/python3.7/site-packages/requests/models.py\", line 971, in json\r\n return complexjson.loads(self.text, **kwargs)\r\n File \"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/__init__.py\", line 348, in loads\r\n return _default_decoder.decode(s)\r\n File \"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py\", line 337, in decode\r\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n File \"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/json/decoder.py\", line 355, in raw_decode\r\n raise JSONDecodeError(\"Expecting value\", s, err.value) from None\r\njson.decoder.JSONDecodeError: Expecting value: line 5 column 1 (char 4)\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/Users/user/PycharmProjects/rocketreach/test.py\", line 5, in \u003cmodule\u003e\r\n result = s.execute()\r\n File \"/Users/user/PycharmProjects/rocketreach/venv/lib/python3.7/site-packages/rocketreach/person_search.py\", line 127, in execute\r\n return self.gateway.execute_search(self)\r\n File \"/Users/user/PycharmProjects/rocketreach/venv/lib/python3.7/site-packages/rocketreach/person_gateway.py\", line 156, in execute_search\r\n result = self.gateway.send(req)\r\n File \"/Users/user/PycharmProjects/rocketreach/venv/lib/python3.7/site-packages/rocketreach/gateway.py\", line 119, in send\r\n result = ErrorResult(req, res)\r\n File \"/Users/user/PycharmProjects/rocketreach/venv/lib/python3.7/site-packages/rocketreach/result.py\", line 24, in __init__\r\n self.errors = response.json()\r\n File \"/Users/user/PycharmProjects/rocketreach/venv/lib/python3.7/site-packages/requests/models.py\", line 975, in json\r\n raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\r\nrequests.exceptions.JSONDecodeError: Expecting value: line 5 column 1 (char 4)\r\n```\r\nThe version I have of rocketreach is 2.1.3 and the version of Python is 3.7.2.\r\n\r\nDoes anyone know why this problem occurs and how to solve it? Thank you","author":{"url":"https://github.com/fbaldi6","@type":"Person","name":"fbaldi6"},"datePublished":"2022-08-05T10:36:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2/rocketreach_python/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:630a0dd4-4592-dbea-bebd-e31210c2dcb2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1F8:393E23:2BB8EAF:3952EC3:697D60FC |
| html-safe-nonce | 4473c71d79b33e1eedb88f6f2c30ed2bacf3694db8f409f0d0fa118b5789ef58 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUY4OjM5M0UyMzoyQkI4RUFGOjM5NTJFQzM6Njk3RDYwRkMiLCJ2aXNpdG9yX2lkIjoiMTU5NDQ5MjAyMzQ0OTQzODY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8114b6c699ad9c5d151c203c46a783ff3b3a414e6774936b7313dec12d21e8a1 |
| hovercard-subject-tag | issue:1329760809 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rocketreach/rocketreach_python/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3e9be6c0d34e484292e24c585d5d9dcdad6bba05dcdfd36afb6a9113885e9f03/rocketreach/rocketreach_python/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3e9be6c0d34e484292e24c585d5d9dcdad6bba05dcdfd36afb6a9113885e9f03/rocketreach/rocketreach_python/issues/2 |
| og:image:alt | Hello, I have been unable to use the API to perform searches since yesterday. Every time I get the same error: requests.exceptions.JSONDecodeError: Expecting value: line 5 column 1 (char 4) Below i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fbaldi6 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/rocketreach/rocketreach_python git https://github.com/rocketreach/rocketreach_python.git |
| octolytics-dimension-user_id | 17463812 |
| octolytics-dimension-user_login | rocketreach |
| octolytics-dimension-repository_id | 184527313 |
| octolytics-dimension-repository_nwo | rocketreach/rocketreach_python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 184527313 |
| octolytics-dimension-repository_network_root_nwo | rocketreach/rocketreach_python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width