forcedotcom / Einstein-GPT-for-Developers

Einstein GPT For Developers
BSD 3-Clause "New" or "Revised" License
31 stars 8 forks source link

SFApiRequestError: Request failed with status code 401 - Scratch Org #36

Closed eltoroit closed 5 months ago

eltoroit commented 7 months ago

Hi,

I was having a similar issue with Einstein altogether, but it was the HTTP code 400. I downgraded to v0.27.1. and I can use it with a production org.

But when I tried to use it for a Scratch org, I got this error: SFApiRequestError: Request failed with status code 401 (notice, it's not 400, but 401)

I followed these steps to help me test it.

{
    "orgName": "@ELTOROIT - Medium.com E-Book F1F4",
    "edition": "Enterprise",
    "hasSampleData": false,
    "features": ["EnableSetPasswordInApi", "PersonAccounts", "EinsteinGPTForDevelopers"],
    "settings": {
        "lightningExperienceSettings": {
            "enableS1DesktopEnabled": true
        },
        "mobileSettings": {
            "enableS1EncryptedStoragePref2": false
        }
    }
}
eltoroit commented 7 months ago

Try 0.31.0, it's working again.

randi274 commented 5 months ago

Closing this issue as we haven't seen it for a while. If anyone else encounters a 401 error with a scratch org feel free to comment here, or open a new issue with us!