Steve Aby
03/08/2021, 5:44 PMDylan
Steve Aby
03/08/2021, 6:28 PMDylan
prefect server start
or the like?Steve Aby
03/08/2021, 6:32 PMSteve Aby
03/08/2021, 6:33 PMSteve Aby
03/08/2021, 6:34 PMSteve Aby
03/08/2021, 6:40 PMSteve Aby
03/08/2021, 6:41 PMDylan
flow.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.
Kyle Moon-Wright
03/08/2021, 7:42 PMSteve 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
?Kyle Moon-Wright
03/08/2021, 8:07 PMrequests
(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 PMSteve Aby
03/08/2021, 8:23 PMSteve Aby
03/08/2021, 8:24 PMZanie
docker ps
?Steve Aby
03/08/2021, 9:38 PMSteve Aby
03/08/2021, 9:41 PMZanie
Zanie
Zanie
set no_proxy=localhost
in a shell then try registering your flow?Steve Aby
03/08/2021, 9:57 PMSteve Aby
03/08/2021, 10:02 PMSteve Aby
03/08/2021, 10:02 PMZanie
Steve Aby
03/08/2021, 10:11 PMnicholas
nicholas
PREFECT__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
prefect server create-tenant --name <<tenant_name>> --slug <<tenant_slug>>
?Steve Aby
03/08/2021, 11:20 PMSteve Aby
03/08/2021, 11:21 PMSteve Aby
03/08/2021, 11:43 PMSteve Aby
03/08/2021, 11:44 PMSteve Aby
03/08/2021, 11:49 PMprefect server create-tenant --name abyst --slug myslug
I get an error from requests 404 Client error: Not Found for url: http://localhost:4200/graphqlSteve Aby
03/09/2021, 12:02 AMZanie
python -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()>"
Zanie
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
requests
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
Steve Aby
03/09/2021, 1:24 AMSteve Aby
03/09/2021, 1:26 AMSteve Aby
03/09/2021, 1:27 AMSteve Aby
03/09/2021, 4:40 AMZanie
Zanie
Steve Aby
03/09/2021, 3:23 PM