Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@SubscriptionMapping it's not working as expected #893

Closed
peterP1998 opened this issue Jan 31, 2024 · 5 comments
Closed

@SubscriptionMapping it's not working as expected #893

peterP1998 opened this issue Jan 31, 2024 · 5 comments
Labels
status: invalid An issue that we don't feel is valid

Comments

@peterP1998
Copy link

I'm trying to figure it out, where is the problem. So I'm facing this error { "errors": [ { "message": "Subscription error", "locations": [], "extensions": { "classification": "INTERNAL_ERROR" } } ] }, when I try to subscribe. I'm using 'org.springframework.graphql:spring-graphql:1.2.3' on spring boot 3.1.4, queries and mutation are working as expected, but subscription are not working at all. There is no exception in the console and I don't know what it's going on. This is how the subcription method looks like `@SubscriptionMapping("notifyTasks")
public Flux notifyTasks(
@argument UUID orderId, @AuthenticationPrincipal OidcUser oidcUser) {

return Flux.empty();

}` Any suggestions how to fix it?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 31, 2024
@bclozel
Copy link
Member

bclozel commented Jan 31, 2024

Have you tried downgrading graphql-java? This might be a duplicate of #861

@bclozel bclozel added the status: waiting-for-feedback We need additional information before we can continue label Jan 31, 2024
@peterP1998
Copy link
Author

Yes, it worked, but after downgrading, AuthenticationPrincipal user is null every time

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jan 31, 2024
@bclozel
Copy link
Member

bclozel commented Jan 31, 2024

Can you share a minimal sample application so I can have a look?

@bclozel bclozel added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels Jan 31, 2024
@spring-projects-issues
Copy link
Collaborator

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Feb 7, 2024
@spring-projects-issues
Copy link
Collaborator

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

@spring-projects-issues spring-projects-issues added status: waiting-for-triage An issue we've not yet triaged and removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Feb 14, 2024
@bclozel bclozel closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2024
@bclozel bclozel added status: invalid An issue that we don't feel is valid and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants