smart-on-fhir / Swift-SMART

Swift SMART on FHIR framework for iOS and OS X
Other
135 stars 47 forks source link

Cannot authenticate with SMART FHIR sandbox server #9

Closed gravicle closed 7 years ago

gravicle commented 7 years ago

Disclaimer: I am very early in learning the FHIR stack, so please consider this issue with a noob in mind.

When trying to authenticate with the Sandbox server, I am getting error:

CapabilityStatement.readFrom() did not return a CapabilityStatement instance but <Resource> https://fhir-api-dstu2.smarthealthit.org/

The SoF-Demo app (master and develop) is also running in to the same issue.

simulator screen shot apr 7 2017 3 28 19 pm

What am I doing incorrectly? Is the issue that the SMART server is dstu2 while the Swift SDK is targeting stu3?

p2 commented 7 years ago

You're connecting to a DSTU-2 server with the STU-3 version of the framework.