Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Running Mssparkutils.credentials.getToken() with Fabric scope doesn't work in Data Pipeline

There is a recent issue that occurs when running 

mssparkutils.credentials.getToken("https://api.fabric.microsoft.com/") in a notebook within the data pipeline. This command used to work previously, and the issue does not occur when the notebook is triggered directly. The error I receive is:
Py4JJavaError: An error occurred while calling z:mssparkutils.credentials.getToken. : java.io.IOException: 500 {"code":"TM_INTERNAL_ERROR","subCode":0,"message":"An internal error occurred.","timeStamp":"2024-10-10T01:43:59.3581074Z","httpStatusCode":500,"hresult":-2147467259,"details":[{"code":"RootActivityId","message":"2177f401-bd80-4fef-bf75-e7483b6a789e"}]} at com.microsoft.azure.trident.tokenlibrary.TokenLibrary.getAccessToken(TokenLibrary.scala:520)
Is there a reason for that and should I use another approach to get the token - I use it to create Notebooks in the workspace.
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hey,

    Yes a fix was deployed and the issue is now resolved.

9 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Thanks for the reply from lbendlin .

     

    It's really frustrating that code that used to work fine now fails to work without making any changes.

     

    A 500 error, also known as an “internal server error”, means that the server encountered an unexpected situation while processing the request that prevented it from completing. This is usually a server-side problem, not a client-side problem.

     

    You can create a support ticket for free and a dedicated Microsoft engineer will come to solve the problem for you.

     

    It would be great if you continue to share in this issue to help others with similar problems after you know the root cause or solution.

     

    The link of Power BI Support:  https://powerbi.microsoft.com/en-us/support/

     

    For how to create a support ticket, please refer to How to create a support ticket in Power BI - Microsoft Fabric Community

     

    Thank you for your understanding.

     

    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

  • m98ateusz's avatar
    m98ateusz
    Frequent Visitor

    Was there any ticket related to it ? I am facing this issue right now 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Any updates guys? We are facing the same problem here in my company. 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Thank you for your interest in this case.

     

    Is my follow-up just to ask if the problem has been solved?

     

    If so, can you accept the correct answer as a solution or share your solution to help other members find it faster?

     

    Thank you very much for your cooperation!

     

    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hey,

      Yes a fix was deployed and the issue is now resolved.