Forum Discussion

Aparnaa_MS's avatar
Aparnaa_MS
Advocate III
2 months ago
Solved

Authentication error with Fabric App

Hi all,

 

 

I’m trying to create a Fabric App using Rayfin CLI, but authentication is failing with a network error (screenshot attached).

 

Issue:

CLI shows “Silent token acquisition failed: network_error”
Falls back to device code flow → still fails
Ends with:

    Fabric authentication failed. Run 'rayfin login'

 

Even after trying rayfin login, the issue persists.

  • Is this due to network/firewall/proxy restrictions or something else?



Has anyone else faced this issue and overcome it? 

 

Thank you

  • Hi Aparnaa_MS,

     

    Thank you for sending through the extra details.

     

    Since the same behavior is happening on both office and personal networks, and VPN issues have already been ruled out, this does not appear to be a general network connectivity problem. One point worth noting is the Node.js version you are using (v24.13.1), which is newer than the versions most CLI tools are typically tested against.

    Please try an LTS version of Node.js, such as v22.x or v20.x, then reinstall Rayfin CLI and run rayfin login again. That should help confirm whether the issue is related to compatibility between the CLI and the Node.js runtime.

    While your IT team looks into any possible proxy or firewall restrictions, it may also be worth checking whether security software is intercepting or blocking authentication requests to Microsoft Entra ID endpoints.

    Please let us know whether testing with an LTS Node.js version changes the behavior.

     

    Thank you and continue using Microsoft Fabric Community Forum.

     

5 Replies

  • Omkar_1712's avatar
    Omkar_1712
    Solution Specialist

    Hello Aparnaa_MS,


    Based on the error in your screenshot, the issue appears to be related to the authentication flow rather than the rayfin login command itself.


    Since both the browser sign-in and the device code flow are failing with a network_error, I'd recommend checking the following:

    • Verify that your network, proxy, VPN, or firewall isn't blocking access to Microsoft Entra ID authentication endpoints.

    • If you're on a corporate network, try connecting from a different network (for example, a mobile hotspot) to rule out network restrictions.

    • Ensure you're using the latest version of the Rayfin CLI.

    • If you've already authenticated previously, try clearing any cached credentials and run rayfin login again.

    If the issue persists, could you share:

    • The output of rayfin --version

    • Your Node.js version (node -v)

    • Whether you're using a corporate proxy or VPN

    This will help determine whether the issue is related to the CLI version, the environment, or network connectivity.


    Best regards,
    Omkar Shinde
    Microsoft Fabric Enthusiast | Power BI Consultant

    💡 If you found this response helpful, please consider giving it a Kudos.
    If this resolves your question, please mark it as the Accepted Solution to help others in the community.

    • Aparnaa_MS's avatar
      Aparnaa_MS
      Advocate III

      Hi Omkar_1712 

       

      Thanks for the detailed suggestions.

      From my testing so far, this does look like a network-related issue on my end:

      • I’m not using a VPN, and I’m facing the issue on both office and personal networks.
      • I’ve also tried switching networks (including personal network/mobile), but the issue is still consistent.
      • Also in contact with IT team for network, proxy, VPN, or firewall isn't blocking issues

      Meanwhile, I’ll share:

      • rayfin --version:  1.33.1 
      • node -v:  v24.13.1 

       

      Best regards,
      Aparnaa M S

      • v-sgandrathi's avatar
        v-sgandrathi
        Community Support

        Hi Aparnaa_MS,

         

        Thank you for sending through the extra details.

         

        Since the same behavior is happening on both office and personal networks, and VPN issues have already been ruled out, this does not appear to be a general network connectivity problem. One point worth noting is the Node.js version you are using (v24.13.1), which is newer than the versions most CLI tools are typically tested against.

        Please try an LTS version of Node.js, such as v22.x or v20.x, then reinstall Rayfin CLI and run rayfin login again. That should help confirm whether the issue is related to compatibility between the CLI and the Node.js runtime.

        While your IT team looks into any possible proxy or firewall restrictions, it may also be worth checking whether security software is intercepting or blocking authentication requests to Microsoft Entra ID endpoints.

        Please let us know whether testing with an LTS Node.js version changes the behavior.

         

        Thank you and continue using Microsoft Fabric Community Forum.

         

  • v-sgandrathi's avatar
    v-sgandrathi
    Community Support

    Hi Aparnaa_MS,


    Thank you Omkar_1712 for your answer to the query

    Following up to check whether you got a chance to review the suggestions given. If the issue still persists please let us know. Glad to help. 

     

    Thank you.

  • v-sgandrathi's avatar
    v-sgandrathi
    Community Support

    Hi Aparnaa_MS

     

    We wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.

    If you need any further assistance, feel free to reach out.

     

    Thank you for being a valued member of the Microsoft Fabric Community Forum!