Skip to content

Unable to get server due to plex security setting #106

@CED0001

Description

@CED0001

Describe the bug
When running the AccountServerContainer.Servers() method, my server only gets returned if the plex > settings > network > secure connections setting is set to "preferred" in stead of "required"

To Reproduce
Steps to reproduce the behavior:

  1. Go to plex > settings > network > secure connections
    image
    And set the secure connection to required:
    image

  2. In your code, run this:

var account = plexFactory.GetPlexAccount(plexToken);

var serversSumm = await account.ServerSummaries(); //always returns 1 server (which is as expected ✅)
var servers = await account.Servers(); //returns 0 servers when secure connection is required, returns 1 server when "preferred"

Expected behavior
account.Servers() to always return the same amount of servers as ServerSummaries()

Screenshots
image

Additional context
interestingly, within the serverSumm variable that is shown above, there is a property named "Scheme". When inspecting this, I can see that it was set to http, instead of the expected "https" (since the servers security setting is set to require secure connections)
Maybe this plays a role in this story as well.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions