microsoft / dbt-fabricspark

MIT License
15 stars 4 forks source link

Unable to establish connection to Livy endpoint with error 408 #19

Open nixent opened 5 months ago

nixent commented 5 months ago

Trying to materialize a model with the dbt-fabric adapter. It fails to establish connection to Livy endpoint and times out at create_session

Error message: Http Error: 408 Client Error: Request Timeout for url: https://api.fabric.microsoft.com/v1/workspaces/{workspace_id}/lakehouses/{lakehouse_id}/livyapi/versions/2023-12-01/sessions

Call to other endpoints, like List tables works fine.

Is there any configuration that needs to be done to make it to work?

jcvdodson commented 5 months ago

Are you always getting this error? There shouldn't be any additional config needed.

nixent commented 5 months ago

@jcvdodson no, now with same code I'm getting error 404

jcvdodson commented 5 months ago

Hmm, that's interesting. Have you double-checked your workspace_id and lakehouse_id in the profiles yml?

nixent commented 5 months ago

yes, I have checked connection by calling List tables as it includes both workspace_id and lakehouse_id, and it works fine.

I learned about the dbt-fabricspark adapter from dbt channel on Slack where @prdpsvs mentioned that Livy endpoints are in private preview and I should contact our Microsoft account team to sign up for the preview which I have done. Could be that something else needs to be done to activate it for our Fabric capacity.

jcvdodson commented 5 months ago

If you are able to create Lakehouses, you should be okay as far as Fabric capacity. Livy might have additional restrictions, but given that Synapse also uses Livy, you should also be good there.

If you'd like, you can email me at t-jdodson@microsoft.com and I can see if I am able to reproduce this issue.

sschuetz2bit commented 5 months ago

Hi were you able to fix it? i also get a 404

jcvdodson commented 5 months ago

Have you signed up for the Livy Public Preview?

sschuetz2bit commented 5 months ago

Not Yet :)

simaopedrotoga commented 1 week ago

I'm too unable to establish a connection to Livy endpoint with error 404 by using the dbt-fabric adapter. Is there a solution for this?