Hi - I am seeing some an issue on my flow. I was h...
# ask-community
r
Hi - I am seeing some an issue on my flow. I was hoping someone could shed some light on how to resolve this one. Here is what I am seeing in the log:
Copy code
06:42:18
ERROR
CloudTaskRunner
Failed to set task state with error: HTTPError('400 Client Error: Bad Request for url: <https://api.prefect.io/graphql>')
Traceback (most recent call last):
  File "c:\program files\python37\lib\site-packages\prefect\engine\cloud\task_runner.py", line 128, in call_runner_target_handlers
    cache_for=self.task.cache_for,
  File "c:\program files\python37\lib\site-packages\prefect\client\client.py", line 1407, in set_task_run_state
    version=version,
  File "c:\program files\python37\lib\site-packages\prefect\client\client.py", line 281, in graphql
    retry_on_api_error=retry_on_api_error,
  File "c:\program files\python37\lib\site-packages\prefect\client\client.py", line 237, in post
    retry_on_api_error=retry_on_api_error,
  File "c:\program files\python37\lib\site-packages\prefect\client\client.py", line 401, in _request
    session=session, method=method, url=url, params=params, headers=headers
  File "c:\program files\python37\lib\site-packages\prefect\client\client.py", line 333, in _send_request
    response.raise_for_status()
  File "c:\program files\python37\lib\site-packages\requests\models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: <https://api.prefect.io/graphql>
k
Hey @Richard Hughes, what version of Prefect are you on and how did you authenticate?
r
version 0.13.13 authentication for which specific piece?
@Kevin Kho
k
Oh ignore that because 0.15.0 switched to service account keys instead of tokens so I was just wondering if there was some mixup there.
Does this happen all the time or just sometimes? What kind of agent are you using? Can you ping
<http://api.prefect.io|api.prefect.io>
from the agent?
r
@Kevin Kho - this was an one off. We are running windows agent on a Windows 10 vm. Idk if this is something to be worried about.
k
Oh that’s good to hear. Seems like not yet, I guess the API call may have just failed once.
r
Good Morning - I am experiencing an outage on my end w/ self hosted agents something is not allowing my agents to pickup flows - is anyone able to help me - are ports 8080 and 4200 the firewall rules I should check - not sure where to begin
k
Are your agents visible in the UI? When you check the Agents tab?