Steve Aby
03/08/2021, 5:44 PMDylan
03/08/2021, 5:49 PMSteve Aby
03/08/2021, 6:28 PMDylan
03/08/2021, 6:32 PMprefect server start
or the like?Steve Aby
03/08/2021, 6:32 PMDylan
03/08/2021, 6:44 PMflow.run()
doesn’t communicate with the orchestration layer, so that makes senseKyle Moon-Wright
03/08/2021, 7:19 PMprefect backend server
where you are running the python script?Steve Aby
03/08/2021, 7:31 PMhi Kyle. I am executing prefect backend server in a shell window and not in the python code. I am on prefect 0.14.10
Kyle Moon-Wright
03/08/2021, 7:41 PMI get that error regardless of whether I have the UI running or not.As far as I can tell, you aren’t missing any steps so something is afoot! I will keep digging.
Steve Aby
03/08/2021, 7:50 PMSure thing...thanks for your help......:\Users\abyst\AppData\Local\Continuum\anaconda3\python.exe C:/Users/abyst/Documents/Source/Python/SonicLedgerPrefect/teststuff.py
Traceback (most recent call last):
File "C:/Users/abyst/Documents/Source/Python/SonicLedgerPrefect/teststuff.py", line 29, in <module>
main()
File "C:/Users/abyst/Documents/Source/Python/SonicLedgerPrefect/teststuff.py", line 24, in main
flow.register(project_name="FirstFlow")
File "C:\Users\abyst\AppData\Local\Continuum\anaconda3\lib\site-packages\prefect\core\flow.py", line 1675, in register
idempotency_key=idempotency_key,
File "C:\Users\abyst\AppData\Local\Continuum\anaconda3\lib\site-packages\prefect\client\client.py", line 788, in register
project = self.graphql(query_project).data.project # type: ignore
File "C:\Users\abyst\AppData\Local\Continuum\anaconda3\lib\site-packages\prefect\client\client.py", line 304, in graphql
retry_on_api_error=retry_on_api_error,
File "C:\Users\abyst\AppData\Local\Continuum\anaconda3\lib\site-packages\prefect\client\client.py", line 220, in post
retry_on_api_error=retry_on_api_error,
File "C:\Users\abyst\AppData\Local\Continuum\anaconda3\lib\site-packages\prefect\client\client.py", line 460, in _request
session=session, method=method, url=url, params=params, headers=headers
File "C:\Users\abyst\AppData\Local\Continuum\anaconda3\lib\site-packages\prefect\client\client.py", line 375, in _send_request
response.raise_for_status()
File "C:\Users\abyst\AppData\Local\Continuum\anaconda3\lib\site-packages\requests\models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: <http://localhost:4200/graphql>
Process finished with exit code 1Kyle Moon-Wright
03/08/2021, 8:05 PMprefect register flow -f teststuff.py -p FirstFlow
?requests
(I’m on 2.25.1) to double check that module from the traceback, as this must be coming from the Python client?Steve Aby
03/08/2021, 8:16 PMZanie
03/08/2021, 9:19 PMdocker ps
?Steve Aby
03/08/2021, 9:38 PMZanie
03/08/2021, 9:52 PMset no_proxy=localhost
in a shell then try registering your flow?Steve Aby
03/08/2021, 9:57 PMZanie
03/08/2021, 10:06 PMSteve Aby
03/08/2021, 10:11 PMnicholas
03/08/2021, 11:13 PMPREFECT__SERVER__*
) and send over the contents of your config file (located at ~/.prefect/config.toml
)? Please redact any sensitive info beforehand since this is a public channel 🙂Steve Aby
03/08/2021, 11:19 PMnicholas
03/08/2021, 11:20 PMprefect server create-tenant --name <<tenant_name>> --slug <<tenant_slug>>
?Steve Aby
03/08/2021, 11:20 PMprefect server create-tenant --name abyst --slug myslug
I get an error from requests 404 Client error: Not Found for url: http://localhost:4200/graphqlZanie
03/09/2021, 12:49 AMpython -c "import requests; requests.get('<http://localhost:4200/graphql').raise_for_status()>"
and python -c "import requests; requests.get('<http://localhost:8080/').raise_for_status()>"
curl '<http://localhost:4200/graphql>' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: <http://localhost:4200>' --data-binary '{"query":"# Write your query or mutation here\n"}' --compressed
Steve Aby
03/09/2021, 1:14 AMZanie
03/09/2021, 1:19 AMrequests
since it can contact the UI fine. Sounds like the apollo service has silently failed or something. We'll keep trying to figure out what's going on here...Steve Aby
03/09/2021, 1:22 AMas far as the curl command, it did not like that giving me this error: Invoke-WebRequest : Cannot bind parameter 'Headers'. Cannot convert the "Accept-Encoding: gzip, deflate, br" value of type "System.String" to type "System.Collections.IDictionary".
At line:1 char:41
+ ... calhost:4200/graphql' -H 'Accept-Encoding: gzip, deflate, br' -H 'Con ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Zanie
03/09/2021, 2:47 PMSteve Aby
03/09/2021, 3:23 PM