404 - File or directory not found

165 views
Skip to first unread message

Rajasekhar k

unread,
Dec 30, 2021, 1:05:22 PM12/30/21
to SMART on FHIR
Hello All,

Im about to use Standalone launch, Im done with authorization and when trying to "Exchanges the Authorization Code for an Access Token" im getting the error
404 - File or directory not found, please provide the solution.

standalonelaunch.png
standalonelaunch.png

Luis Enrique

unread,
Dec 30, 2021, 1:15:50 PM12/30/21
to SMART on FHIR
Is HTTP/1.1 part of your URI? I don't see that in my version of Postman.

You probably need to remove that from your POST URI line.

Rajasekhar k

unread,
Dec 30, 2021, 10:18:56 PM12/30/21
to SMART on FHIR
Ok, thank you for the response, the above said issue is resolved but currently im getting an error ""invalid_client" , please find the below screenshot

invalid_client.png

Luis Enrique

unread,
Dec 31, 2021, 1:19:24 PM12/31/21
to SMART on FHIR
Usually means one of the below is not correct. Get a new auth code, maybe expired and double check the redirect_uri is the same as in the original request. Not 100% sure but I think your redirect_url will be automatically encoded by postman? Try adding it without the encoding.



  • grant_type: For the EHR launch flow, this should contain the value "authorization_code".
  • code: This parameter contains the authorization code sent from Epic's authorization server to your application as a querystring parameter on the redirect URI as described above.
  • redirect_uri: This parameter must contain the same redirect URI that you provided in the initial access request. The value of this parameter needs to be URL encoded.
  • client_id: This parameter must contain the application's client ID issued by Epic that you provided in the initial request.

Rajasekhar k

unread,
Jan 3, 2022, 10:00:27 PM1/3/22
to SMART on FHIR
Thankyou so much for the response, I have removed "encoding for redirect_url" as suggested for postman and added scope in the step1 for standalone launch to fix the issue.
Reply all
Reply to author
Forward
0 new messages