Skip to content

InfluxDB 2.1 Incompatibility with Session Cookie #262

New issue

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

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

Already on GitHub? # to your account

Closed
sbhenderson opened this issue Nov 8, 2021 · 0 comments · Fixed by #263
Closed

InfluxDB 2.1 Incompatibility with Session Cookie #262

sbhenderson opened this issue Nov 8, 2021 · 0 comments · Fixed by #263
Labels
bug Something isn't working
Milestone

Comments

@sbhenderson
Copy link
Contributor

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

  1. Use InfluxDB 2.1
  2. Activate any API that uses the signin logic of ApiClient
  3. Exception occurs due to a LINQ "Sequence contains no matching element"

Call stack:

System.InvalidOperationException: Sequence contains no matching element
at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func2 predicate)
at InfluxDB.Client.Api.Client.ApiClient.InitToken()
at InfluxDB.Client.Api.Client.ApiClient.BeforeIntercept(IRestRequest request)
at InfluxDB.Client.Api.Client.ApiClient.InterceptRequest(IRestRequest request)
at InfluxDB.Client.Api.Client.ApiClient.CallApiAsync(String path, Method method, List1 queryParams, Object postBody, Dictionary2 headerParams, Dictionary2 formParams, Dictionary2 fileParams, Dictionary`2 pathParams, String contentType, CancellationToken cancellationToken)

Expected behavior:
Not to throw exception

Actual behavior:
Exception thrown

The reason is that there is no longer a cookie called "session" for InfluxDB OSS. It is now called influxdb-oss-session.

Specifications:

  • Client Version: 3.2.0-dev
  • InfluxDB Version: 2.1 from Docker
  • Platform: Linux
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
2 participants