Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug report: Core.DecryptionError #13006

Open
hermanwenhe opened this issue Jan 3, 2025 · 4 comments
Open

bug report: Core.DecryptionError #13006

hermanwenhe opened this issue Jan 3, 2025 · 4 comments
Assignees
Labels

Comments

@hermanwenhe
Copy link
Contributor

Cipher text is broken

stack:
DecryptionError: Cipher text is broken
at Ywr.decrypt (<REDACTED: user-file-path>/extension.js:608:63938)
at m6r.readEnv (<REDACTED: user-file-path>/extension.js:645:31254)
at VIc (<REDACTED: user-file-path>/extension.js:863:17144)
at Ff. (<REDACTED: user-file-path>/extension.js:863:16413)
at Ff.QOc (<REDACTED: user-file-path>/extension.js:898:6512)
at Ff.okc (<REDACTED: user-file-path>/extension.js:863:21842)
at Ff. (<REDACTED: user-file-path>/extension.js:14:389828)
at BE (<REDACTED: user-file-path>/extension.js:1675:18166)
at Object.NPa [as callback] (<REDACTED: user-file-path>/extension.js:1697:18073)
at e.runCommand (<REDACTED: user-file-path>/extension.js:1675:15869)
at cw.h (file:///c:/Users/hermanwen/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:32825)
at cw.h (file:///c:/Users/hermanwen/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:32825)

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Jan 3, 2025
Copy link

👋 Hi @hermanwenhe,

Thank you for reporting this issue! We want to let you know that:

⏱️ Our team will personally review your issue
🎯 You can expect a response within 2 business days

✨ This is an AI-generated initial response
🤖 AI-Generated Preliminary Analysis:

It looks like you are encountering the Core.DecryptionError with the message "Cipher text is broken" while using the Teams Toolkit. This error suggests an issue with decrypting data, likely related to the environment variables.

Error Code: Core.DecryptionError

Error Message: Cipher text is broken

Proposed Solution:

  1. Clear the .env.{}.user File:
    • The error often occurs due to corrupted data in the .env.{}.user file.
    • Locate this file within your project directory.
    • Clear its contents to reset any potentially corrupted encrypted data.
    • Retry running your project to see if the issue is resolved.

Steps to Clear the .env.{}.user File:

  1. Open your project directory.
  2. Find the .env.{}.user file.
  3. Open the file in a text editor.
  4. Clear all content in the file and save it.
  5. Try running your project again.

Additional Steps:

If clearing the .env.{}.user file does not resolve the issue, consider the following steps:

  1. Verify Cipher Text Integrity:

    • Ensure that the cipher text being decrypted is not corrupted or altered.
  2. Check for Updates in Related Issues:

  3. Review Extension Implementation:

    • Examine the LocalCrypto.decrypt and EnvUtil.readEnv functions in the specified file paths for potential bugs or incorrect usage.

For more details and to follow ongoing discussions, you can refer to these GitHub issues:

By following these steps, you should be able to identify and resolve the decryption error you are encountering.


Note: This is an automated first response generated by AI. A human team member will review your issue and provide a more detailed response soon. We appreciate your patience!

@Meghana-MSFT
Copy link

@hermanwenhe - Could you please share more details on the issue you are facing. Could you please share repro steps.

@tecton
Copy link
Contributor

tecton commented Jan 7, 2025

Hi @hermanwenhe, please try to remove the .env.local.user file and run local debug again.

@adashen adashen removed the needs attention This issue needs the attention of a contributor. label Jan 8, 2025
@hermanwenhe
Copy link
Contributor Author

Can't repro. Looks good now. @tecton Thanks for attention!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants