6 hours ago
Hello,
I try to access an API via a python script.
I have access using postman. But if I try to access it via python in databricks, it will not work (timeout).
Here is my code:
Best regards,
Daniel
6 hours ago
Are you running this from a notebook? if yes can you run bash command:
%sh
nc -vz prod-api.xsp.cloud.corpintra.net 443
I want to confirm your cluster is able to reach the endpoint.
6 hours ago
yes, i use it from a notebook.
C:\Windows>nc -vz prod-api.xsp.cloud.corpintra.net 443
Der Befehl "nc" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
6 hours ago
is "nc" a linux command? I use windows...
6 hours ago
Sorry I am confused, you mentioned that you are running this in a notebook, this inside Databricks and running it through a cluster? if this is the case the command needs to be ran inside the notebook, you can add a new cell from it.
6 hours ago
sorry for confusing... i missunderstood your question.... now I got it.
running this command in a notebook in databricks shows no result.... it is "loading" endlessly... I only can interrupt it....
6 hours ago
now it shows:
nc: connect to prod-api.xsp.cloud.corpintra.net (53.13.186.164) port 443 (tcp) failed: Connection timed out
5 hours ago
ok that means that your subnet for clusters in the cloud deployment is not allowing connections to this host on port 443, you will need to check with your cloud administrator or network team to allow this traffic
5 hours ago
hmm... not good... is it not possible to configure this in azure databricks by myself?
4 hours ago
Unfortunately no because this is not being blocked by Databricks, this is being blocked by a firewall or security group at the cloud level
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group