Skip to content

PlatformNotSupportedException on Blazor WebAssembly (not AspNet hosted) #495

@miggat

Description

@miggat

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

  1. Create a Blazor WebAssembly project using the default template, uncheck ASP.NET Core Hosted, and select .NET6
  2. Install InfluxDb.Client 4.11.0
  3. Anywhere in the code, try to instantiate a new client:
var options = new InfluxDBClientOptions("http://localhost8086")
{
	Token = myToken,
	Timeout = TimeSpan.FromSeconds(10)
};
var client = new InfluxDBClient(options);

Expected behavior:
Constructor should executed without issues

Actual behavior:
Constructor throws a PlatformNotSupportedException

Specifications:

  • Client Version: 4.11.0
  • InfluxDB Version: 2.0.9
  • Platform: Windows 10, Visual Studio 2022

I attached a project to reproduce the issue:

ReproduceInfluxError.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy