Forum Discussion
Debugging in VSCode: Failed to get refresh token
- 1 year ago
Hi Broeks,
Thanks for reaching out to the Microsoft fabric community forum. Thank you nilendraFabric, for your valuable input regarding the issueAfter thoroughly reviewing the details you provided, I have identified few workarounds that may help resolve the issue. Please follow these steps:
Please ensure that the Azure Account extension in VSCode is up to date. Issues with refresh tokens can sometimes be related to the extension version. Sign out and sign back in using the Azure Account extension to refresh credentials and resolve token-related issues.
Make sure the fabric-synapse-runtime-1.2 Conda environment is properly activated in VSCode. Verify that the JAVA_HOME environment variable points to the correct JDK installation path, with OpenJDK 8 recommended to avoid compatibility issues.
Check that the devcontainer configuration is correctly set up with all necessary dependencies and environment variables. Ensure the debugging configuration in the launch.json file is correctly set up for the Spark job, including the correct entry point and required arguments. If the issue persists, try clearing the cached credentials by removing the ~/.azuredatastudio/argv.json file, but note that this will remove all connections.
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.Thank you.
Hi Broeks,
Thanks for reaching out to the Microsoft fabric community forum. Thank you nilendraFabric, for your valuable input regarding the issue
After thoroughly reviewing the details you provided, I have identified few workarounds that may help resolve the issue. Please follow these steps:
Please ensure that the Azure Account extension in VSCode is up to date. Issues with refresh tokens can sometimes be related to the extension version. Sign out and sign back in using the Azure Account extension to refresh credentials and resolve token-related issues.
Make sure the fabric-synapse-runtime-1.2 Conda environment is properly activated in VSCode. Verify that the JAVA_HOME environment variable points to the correct JDK installation path, with OpenJDK 8 recommended to avoid compatibility issues.
Check that the devcontainer configuration is correctly set up with all necessary dependencies and environment variables. Ensure the debugging configuration in the launch.json file is correctly set up for the Spark job, including the correct entry point and required arguments. If the issue persists, try clearing the cached credentials by removing the ~/.azuredatastudio/argv.json file, but note that this will remove all connections.
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you.
- Broeks1 year agoHelper II
Hello v-kpoloju-msft,
I've tested adding the Azure Account (which has been replaced by the Azure Resources extension) to my devcontainer.
This seem to do the trick for me.
So thanks for your suggestions!
And could you update the devcontainer file in your documentation? So it's using this extension by default? This could prevent this issue with other people
SynapseVSCode/samples/.devcontainer/devcontainer.json at main · microsoft/SynapseVSCode · GitHub
Kind regards,
Martijn