Forum Discussion
Failed to create Livy session for executing notebook.
Hi willmasse
Thanks for using Microsoft Fabric Community.
Apologies for the issue that you are facing here.
The 401 Unauthorized Error is an HTTP status code error that represented the request sent by the client to the server that lacks valid authentication credentials.
Methods to rectify the error: The 401 Unauthorized error can be fixed by using any of the following ways:
- Check The URL: Due to manual errors in typing the URL, the 401 unauthorized error may occur. Hence, checking the URL and rectifying the mistakes in it will fix the 401 error status.
- Flush the DNS: Errors in DNS also creates 401 error status sometimes. Therefore, clearing the DNS will also rectify this error. In Windows, the DNS can be flushed by typing ipconfig/flushdns in the command prompt and clicking on ENTER.
- Clear Browser Cookie: In some situations, the cookies may not work smoothly leading to improper server authentication. Thus, by clearing the cookies, the error can be rectified.
- Logging out and Logging in again: If you're authenticated via a session (like in a web app), it might have expired. Therefore, logging out and logging in again by providing the credentials may also rectify this error.
I hope this information helps. Please do let us know if you have any further questions.
These are Notebooks running in Pipelines. None of those things are applicable.
I also get these errors as well: SparkCoreError/SessionDidNotEnterIdle: Livy session has failed. Error code: SparkCoreError/SessionDidNotEnterIdle. SessionInfo.State from SparkCore is Error: Session did not enter idle state after 10 minutes.
I'm getting really frequent errors running Notebooks in Pipelines that all revolve around Livy session.
- v-cboorla-msft2 years agoMicrosoft Employee
Hi willmasse
Apologies for the delay in response.
This seems to be an intermittent issue, can you please try to rerun the pipelines?
If the issue still persists please do let us know.
Thanks
- v-cboorla-msft2 years agoMicrosoft Employee
Hi willmasse
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.
In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help.
Thanks- v-cboorla-msft2 years agoMicrosoft Employee
Hi willmasse
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others.
If you have any question relating to the current thread, please do let us know and we will try out best to help you.
In case if you have any other question on a different issue, we request you to open a new thread.
Thanks