Skip to content

Error creating GraphQLHttpClient in Blazor preview3 #206

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

Closed
julitogtu opened this issue Mar 31, 2020 · 2 comments
Closed

Error creating GraphQLHttpClient in Blazor preview3 #206

julitogtu opened this issue Mar 31, 2020 · 2 comments

Comments

@julitogtu
Copy link

julitogtu commented Mar 31, 2020

Hi all, I'm trying to create a new GraphQLHttpClient in Blazor WebAssembly preview3 (latest preview), but an error in throw:

The code is simple:

var graphQLClient = new GraphQLHttpClient("https://localhost:44367/graphql", new NewtonsoftJsonSerializer());

I also tried with SystemTextJsonSerializer.

In the output window I get:

Stacktrace: 

Error
    at 643155 (https://localhost:44324/_framework/wasm/dotnet.3.2.0-preview3.20168.1.js:1:18963)
    at _emscripten_asm_const_iii (https://localhost:44324/_framework/wasm/dotnet.3.2.0-preview3.20168.1.js:1:19148)
    at wasm_logger (wasm-function[3118]:0x9c9ca)
    at eglib_log_adapter (wasm-function[6011]:0x10ed2f)
    at monoeg_g_logstr (wasm-function[4558]:0xcb37b)
    at monoeg_g_logv_nofree (wasm-function[2186]:0x62b0d)
    at monoeg_assertion_message (wasm-function[425]:0xd1b8)
    at mono_assertion_message_unreachable (wasm-function[141]:0x32a1)
    at create_thread (wasm-function[2979]:0x94c84)
    at ves_icall_System_Threading_Thread_Thread_internal (wasm-function[3260]:0xa0d80)
* Assertion: should not be reached at /mnt/jenkins/workspace/test-mono-mainline-wasm/label/ubuntu-1804-amd64/mono/utils/mono-threads-wasm.c:260

undefined
undefined
Uncaught RuntimeError: abort(undefined). Build with -s ASSERTIONS=1 for more info.The thread 0x7324 has exited with code 0 (0x0).
The thread 0x4ddc has exited with code 0 (0x0).
The thread 0x4694 has exited with code 0 (0x0).
'iisexpress.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\3.1.3\Microsoft.AspNetCore.Http.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

I'm using GraphQL.Client v3.0.1.

I already tried some different ways to create the graphQLClient with the others constructors, but none works.

@rose-a
Copy link
Collaborator

rose-a commented Apr 2, 2020

Propably the same problam as #186...

The exception only says that it reached an assertion which it shouldn't have reached.
I can't infer a tangible problem with GraphQL.Client from this!

Could you try to extract more info on what exactly is failing?

@rose-a
Copy link
Collaborator

rose-a commented Sep 15, 2020

Closing this in favor of #262

@rose-a rose-a closed this as completed Sep 15, 2020
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

2 participants