Describe the bug
Can not load endpoints after login. Same issue after every attempt. It looks as if the results returned by the endpoints interface cannot be parsed.
To Reproduce
Steps to reproduce the behavior:
- Go to 'Log in' page
- Enter the correct url, credentials.
- Click on 'Log in'
- See error
Expected behavior
A dashboard page of all endpoints after login.
Details:
- Device: iPhone 11
- OS: iOS 15.3
- Harbour version v2.0.0#5
- Portainer version 2.11.0
Additional context
In my portainer instance there are three endpoints :
Endpoints interface return :
[
{
"Id": 1,
"Name": "hass.io",
"Type": 1,
"URL": "unix:///var/run/docker.sock",
"GroupId": 1,
"PublicURL": "",
"TLSConfig": {
"TLS": false,
"TLSSkipVerify": false
},
"Extensions": [],
"AzureCredentials": {
"ApplicationID": "",
"TenantID": "",
"AuthenticationKey": ""
},
"TagIds": [],
"Status": 1,
"Snapshots": [
{
"Time": 1643508346,
"DockerVersion": "20.10.9",
"Swarm": false,
"TotalCPU": 2,
"TotalMemory": 2076291072,
"RunningContainerCount": 14,
"StoppedContainerCount": 0,
"HealthyContainerCount": 0,
"UnhealthyContainerCount": 0,
"VolumeCount": 0,
"ImageCount": 23,
"ServiceCount": 0,
"StackCount": 0,
"DockerSnapshotRaw": {
"Containers": null,
"Volumes": null,
"Networks": null,
"Images": null,
"Info": null,
"Version": null
},
"NodeCount": 0
}
],
"UserAccessPolicies": {},
"TeamAccessPolicies": {},
"EdgeKey": "",
"EdgeCheckinInterval": 5,
"Kubernetes": {
"Snapshots": [],
"Configuration": {
"UseLoadBalancer": false,
"UseServerMetrics": false,
"StorageClasses": [],
"IngressClasses": [],
"RestrictDefaultNamespace": false
}
},
"ComposeSyntaxMaxVersion": "3.9",
"SecuritySettings": {
"allowBindMountsForRegularUsers": true,
"allowPrivilegedModeForRegularUsers": true,
"allowVolumeBrowserForRegularUsers": false,
"allowHostNamespaceForRegularUsers": true,
"allowDeviceMappingForRegularUsers": true,
"allowStackManagementForRegularUsers": true,
"allowContainerCapabilitiesForRegularUsers": true,
"allowSysctlSettingForRegularUsers": true,
"enableHostManagementFeatures": false
},
"LastCheckInDate": 0,
"AuthorizedUsers": null,
"AuthorizedTeams": null,
"Tags": null
},
{
"Id": 4,
"Name": "cloud",
"Type": 4,
"URL": "http://127.0.0.1:0",
"GroupId": 1,
"PublicURL": "xxx.xxx",
"TLSConfig": {
"TLS": false,
"TLSSkipVerify": false
},
"Extensions": [],
"AzureCredentials": {
"ApplicationID": "",
"TenantID": "",
"AuthenticationKey": ""
},
"TagIds": [],
"Status": 1,
"Snapshots": [
{
"Time": 1643450007,
"DockerVersion": "20.10.12",
"Swarm": false,
"TotalCPU": 1,
"TotalMemory": 2083811328,
"RunningContainerCount": 4,
"StoppedContainerCount": 1,
"HealthyContainerCount": 0,
"UnhealthyContainerCount": 0,
"VolumeCount": 2,
"ImageCount": 8,
"ServiceCount": 0,
"StackCount": 1,
"DockerSnapshotRaw": {
"Containers": null,
"Volumes": null,
"Networks": null,
"Images": null,
"Info": null,
"Version": null
},
"NodeCount": 0
}
],
"UserAccessPolicies": {},
"TeamAccessPolicies": {},
"EdgeID": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxx",
"EdgeKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"EdgeCheckinInterval": 5,
"Kubernetes": {
"Snapshots": [],
"Configuration": {
"UseLoadBalancer": false,
"UseServerMetrics": false,
"StorageClasses": [],
"IngressClasses": [],
"RestrictDefaultNamespace": false
}
},
"ComposeSyntaxMaxVersion": "3.9",
"SecuritySettings": {
"allowBindMountsForRegularUsers": true,
"allowPrivilegedModeForRegularUsers": true,
"allowVolumeBrowserForRegularUsers": false,
"allowHostNamespaceForRegularUsers": true,
"allowDeviceMappingForRegularUsers": true,
"allowStackManagementForRegularUsers": true,
"allowContainerCapabilitiesForRegularUsers": true,
"allowSysctlSettingForRegularUsers": true,
"enableHostManagementFeatures": true
},
"LastCheckInDate": 1643508545,
"AuthorizedUsers": null,
"AuthorizedTeams": null,
"Tags": null
},
{
"Id": 5,
"Name": "nas",
"Type": 2,
"URL": "tcp://192.168.2.225:9001",
"GroupId": 1,
"PublicURL": "192.168.2.225",
"TLSConfig": {
"TLS": true,
"TLSSkipVerify": true
},
"Extensions": [],
"AzureCredentials": {
"ApplicationID": "",
"TenantID": "",
"AuthenticationKey": ""
},
"TagIds": [],
"Status": 1,
"Snapshots": [
{
"Time": 1643508346,
"DockerVersion": "20.10.3",
"Swarm": false,
"TotalCPU": 2,
"TotalMemory": 10272227328,
"RunningContainerCount": 7,
"StoppedContainerCount": 4,
"HealthyContainerCount": 1,
"UnhealthyContainerCount": 0,
"VolumeCount": 1,
"ImageCount": 11,
"ServiceCount": 0,
"StackCount": 0,
"DockerSnapshotRaw": {
"Containers": null,
"Volumes": null,
"Networks": null,
"Images": null,
"Info": null,
"Version": null
},
"NodeCount": 0
}
],
"UserAccessPolicies": {},
"TeamAccessPolicies": {},
"EdgeKey": "",
"EdgeCheckinInterval": 5,
"Kubernetes": {
"Snapshots": [],
"Configuration": {
"UseLoadBalancer": false,
"UseServerMetrics": false,
"StorageClasses": [],
"IngressClasses": [],
"RestrictDefaultNamespace": false
}
},
"ComposeSyntaxMaxVersion": "3.9",
"SecuritySettings": {
"allowBindMountsForRegularUsers": true,
"allowPrivilegedModeForRegularUsers": true,
"allowVolumeBrowserForRegularUsers": false,
"allowHostNamespaceForRegularUsers": true,
"allowDeviceMappingForRegularUsers": true,
"allowStackManagementForRegularUsers": true,
"allowContainerCapabilitiesForRegularUsers": true,
"allowSysctlSettingForRegularUsers": true,
"enableHostManagementFeatures": false
},
"LastCheckInDate": 0,
"AuthorizedUsers": null,
"AuthorizedTeams": null,
"Tags": null
}
]
Bug