PipeItToDevNull / pastebin-swa

0 stars 0 forks source link

Responses should be JSON #7

Open PipeItToDevNull opened 1 month ago

PipeItToDevNull commented 1 month ago
2024-07-18 00:57:43.205 ERROR: POST request to URL: https://victorious-wave-0a02a5a0f.5.azurestaticapps.net/api/upload failed
2024-07-18 00:57:43.206 ERROR: Traceback (most recent call last):
  File "/var/TechSupportBot/techsupport_bot/core/http.py", line 218, in process_http_response
    response_json = await response_object.json()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1176, in json
    raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url=URL('https://victorious-wave-0a02a5a0f.5.azurestaticapps.net/api/upload')
PipeItToDevNull commented 1 month ago

Check what Linx returns and maybe emulate that

PipeItToDevNull commented 1 month ago

Linx by default responds in plain text but can respond in JSON