question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In production datastore doesn't sync

See original GitHub issue

Describe the bug I manually deployed 3 different react app with

  • graphql api dynamodb
  • cognito auth with email
  • everything default with create-react-app settings
  • using typescript with react

Everything syncs in development (localhost) but doen’t sync in deployed app in both cases amplify app domain & custom domain.

auth works in production but graphql api doesn’t sync

I am able to login with email in production but cannot sync.

I deployed manually with

  • directly from console
  • using amplify cli to deploy manually

Both cases no queries are made and no mutations are made. Only offline access is avaialble.

Expected behavior If it can sync on development (localhost) then it should also sync in production (amplifyapp domain or custom domain).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sebboecommented, Apr 27, 2020

@apoorvmote Workaround: adding DataStore in my main.ts with no argument worked for me.

import Amplify, { DataStore } from 'aws-amplify';
import amplify from './aws-exports';
Amplify.configure(amplify);
DataStore.configure();
1reaction
elorzafecommented, Apr 22, 2020

For install unstable release:

yarn add @aws-amplify/datastore@unstable using yarn

npm install @aws-amplify/datastore@unstable using npm

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syncing a Core Data Store with CloudKit
Syncing a Core Data Store with CloudKit. Synchronize objects between devices, and handle store changes in the user interface. Overview.
Read more >
Exporting and Importing Entities - Datastore
This page describes how to export and import Firestore in Datastore mode entities using the managed export and import service. The managed export...
Read more >
App Architecture: Data Layer - DataStore
Explore this app architecture guide on data layer libraries to learn about Preferences DataStore and Proto DataStore, Setup, and more.
Read more >
For an Amplify Datastore setup, is there a way to turn off ...
I'm using Amplify Datastore with AppSync enabled. Data syncing is working between local and cloud, but having to execute amplify push to ...
Read more >
Troubleshooting and Common Mistakes - AWS AppSync
This section discusses some common errors and how to troubleshoot them. Incorrect DynamoDB Key Mapping. If your GraphQL operation returns the following ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found