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

SWIFT TASK CONTINUATION MISUSE: first() leaked its continuation! #210

Open
Zomatree opened this issue Dec 25, 2024 · 0 comments
Open

SWIFT TASK CONTINUATION MISUSE: first() leaked its continuation! #210

Zomatree opened this issue Dec 25, 2024 · 0 comments

Comments

@Zomatree
Copy link

Describe the bug

Everytime i try run a query i receive this message in my logs and the query is never returned from and no actual error is reported

To Reproduce
Dont know how to reproduce, client is created via:

let client = SwiftGraphQLClient.Client(request: URLRequest(url: URL(string: "https://graphql.anilist.co")!), exchanges: [AuthExchange(header: "Authorization", getToken: { "Bearer \(auth.token)" })])

and my request:

let query = Selection.Query<String?> {
	try $0.viewer(selection: Selection.User<String?> {
		try $0.name()
	}.optional())
}

let name = try! await client.query(query).data

Expected behavior
Code should either properly error or work

Smartphone (please complete the following information):

  • Device: Iphone15
  • OS: iOS18
  • Browser N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant