No pubsub module applied for subscription
See original GitHub issue** Which Category is your question related to? **
PubSub among with API.
** What AWS Services are you utilizing? ** API with Cognito.
** Provide additional details e.g. code snippets ** I’m doing the configuration in this way:
Amplify.configure({
Auth: {
identityPoolId,
region,
userPoolId,
userPoolWebClientId,
},
API: {
graphql_endpoint: graphqlEndpoint,
aws_appsync_region: region,
aws_appsync_authenticationType: 'AMAZON_COGNITO_USER_POOLS',
graphql_headers: graphqlHeaders,
},
});
and I’m calling
const query = (
`${userFragment}
${messageFragment}
subscription MessageCreated($conversationId: ID!) {
messageCreated(conversationId: $conversationId) {
...MessageFragment
}
}`
);
subscribe(query, { conversationId }, callback);
But at runtime I get this error
No pubsub module applied for subscription
I can’t find in the doc where it explains how to do the configuration with API.
Can you please help me?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:16 (3 by maintainers)
Top Results From Across the Web
Amplify No pubsub module applied for subscription ReactJs
I am facing issue with subscriptions its throw exception
Read more >PubSub - Subscribe & Unsubscribe - JavaScript - Amplify Docs
Learn more about how to subscribe to and unsubscribe from topics using Amplify's PubSub category - JavaScript - AWS Amplify Docs.
Read more >Push subscriptions | Cloud Pub/Sub Documentation
The Pub/Sub service delivers messages from the same Google Cloud region on a best-effort basis. Pub/Sub no longer requires proof of ownership for...
Read more >Subscriptions in Apollo Server - Apollo GraphQL Docs
This article uses the graphql-ws library to add support for subscriptions to Apollo Server 4. We no longer recommend using the previously documented ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@EgidioCaprino I have this app code working. ( I previously installed @aws-amplify/core @aws-amplify/pubsub @aws-amplify/api)
This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-help
channels or Discussions for those types of questions.