Timeline for I try to do callout to my apex rest service from first to second dev org, but got CalloutException
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 8, 2022 at 16:30 | comment | added | Jeferson Chaves | It happens to us all. Don't worry. | |
Apr 8, 2022 at 15:13 | vote | accept | Ivan | ||
Apr 8, 2022 at 15:12 | comment | added | Ivan | @JefersonChaves ,it works ,what a stupid mistake, thanks) | |
Apr 8, 2022 at 15:08 | answer | added | Jeferson Chaves | timeline score: 1 | |
Apr 8, 2022 at 15:02 | comment | added | Jeferson Chaves | Hello Ivan, thanks, but actually the endpoint on Postman is different from the code. I see the postman as wise-otter-ngj5eu-dev-ed.my.salesforce.com and the code with wise-otter-ngj5eu-dev-ed.salesforce.com (missing the .my. between dev-ed and salesforce). Suggestion: copy the endpoint from postman and update the code, try again, and report the outcome. | |
Apr 8, 2022 at 14:52 | history | edited | Ivan | CC BY-SA 4.0 |
added 115 characters in body
|
Apr 8, 2022 at 14:45 | comment | added | Ivan | @JefersonChaves you need access token to call my apex rest, this URL for rest service , you can login with this URL wise-otter-ngj5eu-dev-ed.lightning.force.com | |
Apr 8, 2022 at 14:41 | comment | added | Ivan | @DerekF in Postman everything is fine | |
Apr 8, 2022 at 14:10 | comment | added | Derek F |
The first thing I would check here is to see if you do actually have the Apex class with @RestResource(urlMapping='/v1/getAccounts/') in the org you're making this callout to.
|
|
Apr 8, 2022 at 14:10 | comment | added | Jeferson Chaves | Hello Ivan, and welcome to SFSE (Salesforce Stack Exchange). Quick question: are you sure the endpoint is correct? I tried to open wise-otter-ngj5eu-dev-ed.salesforce.com but it failed with a DNS error. | |
S Apr 8, 2022 at 14:03 | review | First questions | |||
Apr 8, 2022 at 14:26 | |||||
S Apr 8, 2022 at 14:03 | history | asked | Ivan | CC BY-SA 4.0 |