Error while running wolfram_client.aquery
- Dominant language
- Python
- Stars
- 154
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
lately I have been getting this weird error in this file while running `wolfram_client.aquery()` when i ask a question like "Define something".
The Error is as below
```
Traceback (most recent call last):
File "", line 1, in
File "c:\Users\myUser\dev\app\venv\Lib\site-packages\wolframalpha\__init__.py", line 129, in aquery
assert resp.headers['Content-Type'] == 'text/xml;charset=utf-8'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
```
I wasn't getting this earlier.
I am using wolfram client version wolframalpha==5.1.3
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at wolframalpha/__init__.py, line 129, and reproduce wolfram_client.aquery() with a question such as "Define something" using wolframalpha==5.1.3. Inspect the response Content-Type that triggers the assertion and determine the expected handling; done means the query no longer fails for the reported response and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 40/100