Open afnx opened 1 year ago
The code that causes the issue:
So, we want to make sure the connection uses https, but it's currently blocking us from connecting to the mock server. Is there a way we can first check if it's not a mock server before verifying the endpoint?
Maybe an additional parameter mockEnabled
?
if(!entry.value.mockEnabled && !entry.value.endpoint.startsWith('https')) {
// Throw configuration error
}
I am adding my comment on here to get this prioritised.
Mocking Amplify DataStore using Mockito for Flutter
@afnx @theartofnonso thanks for reporting this, We look into this and get back to you when we have updates. @theartofnonso do you use Amplify DataStore only or do you use Amplify DataStore with Amplify API to sync with cloud?
@afnx This appears to have been a documentation issue, which has since been fixed.
@NikaHsn I use Datastore alongside API to sync to cloud
Any updates on this?
hi, any update?
Hi everyone,
I've implemented a new feature for Amplify CLI, https://github.com/aws-amplify/amplify-cli/pull/13700. You can now enable HTTPS on your mock server! With HTTPS enabled, this error goes away. Your Flutter application will be able to communicate with your test environment.
Upgrade your CLI version and simply use amplify mock api --https /path/to/key /path/to/cert
.
Updated Description
Updated 05/02/2024 by @Jordan-Nelson
Amplify Flutter does not support
amplify mock api
. This issue will be used to track interest in this feature request.Original Description