Giter Club home page Giter Club logo

Comments (8)

lpatino10 avatar lpatino10 commented on August 23, 2024

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.

from salesforce-sdk.

stevemar avatar stevemar commented on August 23, 2024

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.

from salesforce-sdk.

lpatino10 avatar lpatino10 commented on August 23, 2024

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 😕

from salesforce-sdk.

stevemar avatar stevemar commented on August 23, 2024

@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.

from salesforce-sdk.

lpatino10 avatar lpatino10 commented on August 23, 2024

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

from salesforce-sdk.

stevemar avatar stevemar commented on August 23, 2024

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

from salesforce-sdk.

stevemar avatar stevemar commented on August 23, 2024

@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.

from salesforce-sdk.

lpatino10 avatar lpatino10 commented on August 23, 2024

Will do. Good luck figuring it out!

from salesforce-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.