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

deploy to salesforce doesn't work #73

Closed
stevemar opened this issue Feb 13, 2018 · 8 comments
Closed

deploy to salesforce doesn't work #73

stevemar opened this issue Feb 13, 2018 · 8 comments
Assignees

Comments

@stevemar
Copy link
Contributor

Trying to use the deploy to SFDX button results in an error. Sorry for the lack of detail here but there isn't much to go on...

Salesforce version

  • Not sure?

SDK version

  • from master branch

Steps to reproduce

allow_perms

  • Error is generated

error

@lpatino10
Copy link
Contributor

Hey Steve, thanks for bringing this issue up. I think I may have found the source of the issue here.

First, can you confirm that the Salesforce org you're trying to deploy to is a Dev Hub org? That's the only type of org the button works with and I admittedly haven't made it very clear in the README.

The more likely cause is that it seems the Deploy to SFDX button has an issue with deploying if the target URL isn't the root URL of the project. This issue in their repo here seems to confirm that. If you were trying to deploy from master, the URL should've been https://github.com/watson-developer-cloud/salesforce-sdk/tree/master.

I'm going to make master the base branch, so you shouldn't have an issue after that change, but next time you try just make sure the URL is https://github.com/watson-developer-cloud/salesforce-sdk.

Let me know if you still have any problems after trying again.

@lpatino10 lpatino10 self-assigned this Feb 13, 2018
@stevemar
Copy link
Contributor Author

stevemar commented Feb 13, 2018

Hey @lpatino10 thanks for taking a look at this and your quick analysis.

First, can you confirm that the Salesforce org you're trying to deploy to is a Dev Hub org? That's the only type of org the button works with and I admittedly haven't made it very clear in the README.

I really couldn't tell you with any certainty if i'm doing this correctly. No prompt came up to select an org to deploy to. From what I've been reading online, I know how to bring up the dev console, but I can't seem to run anything. Google tells me this is a permissions issue and I don't have an Author Apex role, but I don't know how to add this even after looking in the console for an hour :)

++ On adding some of this to the README or another supporting document.

@lpatino10
Copy link
Contributor

When you click on the deployment button, do you get this page?

screen shot 2018-02-13 at 11 41 05 am

That link under the Login with your Dev Hub org button will take you to the page to create a Dev Hub org if you're not sure you have one.

If it's something Salesforce-specific with permissions I'm not sure of the best way to help 😕

@stevemar
Copy link
Contributor Author

@lpatino10 The link in the text "Need a Dev Hub org? Learn how to get one here" links out to https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_enable_devhub.htm

I'm assuming my account is fine since it's a trial account and the third item on that page says:

If you're using a trial org, Dev Hub is already enabled.

@lpatino10
Copy link
Contributor

Hmm. Have you tried again since I've changed the base branch for the repo?

@stevemar
Copy link
Contributor Author

stevemar commented Feb 14, 2018

I got slightly further by pausing AdBlock...

We can't authorize you because of an OAuth error.
For more information, contact your Salesforce administrator.

OAUTH_APPROVAL_ERROR_GENERIC : An unexpected error
has occured during authentication. Please try again.

screen shot 2018-02-13 at 9 13 54 pm

@stevemar
Copy link
Contributor Author

@lpatino10 you can ignore this issue for now. I'm spinning my wheels trying to get salesforce to actually do something that isn't tossing up an error. I'm a while away from being able to use the SDK.

@lpatino10
Copy link
Contributor

Will do. Good luck figuring it out!

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

No branches or pull requests

2 participants