Hi there Since the version 0.15.5 i'm not able to ...
# prefect-server
m
Hi there Since the version 0.15.5 i'm not able to register any flows to the server. I got this error:
Copy code
C:\Users\hadornm\Miniconda3\envs\prefect-3.9\python.exe S:/cdwh-prefect/cdwh_flow_register.py
[2021-09-06 15:56:30+0200] INFO - prefect | Do DEV Register with image: xxx/xxx:1.x.x
Traceback (most recent call last):
  File "S:\cdwh-prefect\cdwh_flow_register.py", line 91, in <module>
    flow.register(project_name='cdwh ' + env_name, idempotency_key=flow_hash)
  File "C:\Users\hadornm\Miniconda3\envs\prefect-3.9\lib\site-packages\prefect\core\flow.py", line 1727, in register
    registered_flow = client.register(
  File "C:\Users\hadornm\Miniconda3\envs\prefect-3.9\lib\site-packages\prefect\client\client.py", line 1122, in register
    project = self.graphql(query_project).data.project  # type: ignore
  File "C:\Users\hadornm\Miniconda3\envs\prefect-3.9\lib\site-packages\prefect\client\client.py", line 548, in graphql
    result = <http://self.post|self.post>(
  File "C:\Users\hadornm\Miniconda3\envs\prefect-3.9\lib\site-packages\prefect\client\client.py", line 451, in post
    response = self._request(
  File "C:\Users\hadornm\Miniconda3\envs\prefect-3.9\lib\site-packages\prefect\client\client.py", line 737, in _request
    response = self._send_request(
  File "C:\Users\hadornm\Miniconda3\envs\prefect-3.9\lib\site-packages\prefect\client\client.py", line 647, in _send_request
    response.raise_for_status()
  File "C:\Users\hadornm\Miniconda3\envs\prefect-3.9\lib\site-packages\requests\models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 405 Client Error: Not Allowed for url: <https://xxx.xx:443/>
Is this a known error?
If i switch back to 0.15.4 then the register is working...
k
This is part of the breaking changes here I think. You might need to upgrade the server image?
m
ftr: I guess our case is special, i found the change how you detect the graphql url. I wrote there my answer: https://github.com/PrefectHQ/prefect/pull/4914#issuecomment-915195313 Thanks for your help!
@Kevin Kho Sorry to ask again you: Do you know, if this comment i posted above in the issue will be read by someone?
k
Sorry about that. I didn’t know that was a question. I thought it was a comment. Will bump for you 👍
👍 1