Thanks to visit codestin.com
Credit goes to github.com

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