forcedotcom / code-builder-feedback

This repository is used to collect feedback for the Code Builder beta.
29 stars 2 forks source link

"Script-thrown exception" when clicking on "Join the Beta" in Code Builder Dashboard #147

Closed FabienTaillon closed 2 years ago

FabienTaillon commented 2 years ago

Describe the bug When going to Code Builder Dashboard and clicking on "Join the Beta", I'm seeing a "Script-thrown exception" error. Also, documentation says that we should click on a "Get Started" button but I only have a "Join the Beta" one. I've installed the package via AppExchange listing, and it's v0.14 that gets installed.

To Reproduce Steps to reproduce the behavior:

  1. Go to Code Builder Dashboard
  2. Click on "Join the Beta"

Expected behavior I should be able to create a new Code Builder project.

Screenshots

cb1 cb2

Desktop (please complete the following information):

jonnyhork commented 2 years ago

@FabienTaillon Thanks for creating this issue in GitHub, we will look into this today!

RupertBarrow commented 2 years ago

I'm getting the same error. Here is what I see in the Apex debug logs :

image
msrivastav13 commented 2 years ago

@jonnyhork Heads that I found if user don’t have English set in their locale it does not get you to the actual error and throws script exception!

jonnyhork commented 2 years ago

@FabienTaillon @RupertBarrow The issue appears to be related to the way we handle request validation from the managed package to our API. So far we are only seeing this with orgs based in Europe. It would be helpful for us get some information from you to debug the error.

If you are willing to share this information, can you please provide the values from these Apex methods?

System.debug('User ID: ' + UserInfo.getUserId());
System.debug('User Name: ' + UserInfo.getUserName());
System.debug('Name: ' + UserInfo.getName());
System.debug('Org ID: ' + UserInfo.getOrganizationId());
System.debug('User Locale: ' + UserInfo.getLocale());

The easiest way will be to run this as "Anonymous Apex" in the Developer Console and then select "Debug Only" in the execution log. I am assuming you are familiar with this process, if not I would be happy to provide detailed instructions.

If you do not want to share the information in GitHub then you can email me at jhork@salesforce.com.

Thank you so much for the help, we really appreciate your time!

Altanik commented 2 years ago

Hello @jonnyhork,

Thank you for your responsiveness.

I'm having the same issue and I'm also based in Europe.

Please find below the output of the transmitted apex methods:

10:58:32:006 USER_DEBUG [1]|DEBUG|User ID: 0057Q000005LC3VQAW 10:58:32:006 USER_DEBUG [2]|DEBUG|User Name: touimi.benj@gmail.com.codebuilder 10:58:32:006 USER_DEBUG [3]|DEBUG|Name: El Mehdi Touimi Benjelloun 10:58:32:007 USER_DEBUG [4]|DEBUG|Org ID: 00D7Q0000093bg3UAA 10:58:32:007 USER_DEBUG [5]|DEBUG|User Locale: fr_FR_EURO

Regards

jonnyhork commented 2 years ago

We have identified the issue and pushed a new package version to all customers with 0.14 installed. You should now have v0.15 installed in your orgs.

Can you please try Code Builder again and let us know if you still have any issues, thanks!

elliot41 commented 2 years ago

Hi @jonnyhork,

When clicking "Join the beta", I have the message "You will receive an email when your beta access has been granted."

Who will grant this access ? Is there a limit in the number of participants in the beta ? I still don't have received the email.

Thanks for your help, Elliot

jonnyhork commented 2 years ago

@elliot41 Code Builder is in open beta and is available to try on a first-come, first-served basis. If no spots are available, you’re added to a waitlist, and receive an email when a spot opens up for you. We plan to increase the number of spots available every couple days, so you may get an email soon. Thanks for your patience!

jonnyhork commented 2 years ago

As far as we can tell this issue has been fixed with https://github.com/forcedotcom/workspace-manager-package/pull/209. If you are still having trouble using Code Builder, please let us know.