Skip to content

Bump dataplicity agent to 0.5.13 (fixes 403 for device-gateway devices)#53

Open
alex-mextner wants to merge 1 commit into
AlexxIT:masterfrom
alex-mextner:fix/bump-dataplicity-agent
Open

Bump dataplicity agent to 0.5.13 (fixes 403 for device-gateway devices)#53
alex-mextner wants to merge 1 commit into
AlexxIT:masterfrom
alex-mextner:fix/bump-dataplicity-agent

Conversation

@alex-mextner

Copy link
Copy Markdown

Problem

After provisioning through the new device-gateway API (the flow this integration already uses, added in #50), the agent fails at runtime:

ERROR (dataplicity) [agent] disk poll failed unable to contact JSONRPC server 'https://api.dataplicity.com' (HTTP Error 403: Forbidden)
ERROR (dataplicity) [agent] sync failed unable to contact JSONRPC server 'https://api.dataplicity.com' (HTTP Error 403: Forbidden)

The device shows up but never comes online.

Cause

The agent is pinned to dataplicity==0.4.40, which talks to the legacy api.dataplicity.com and is rejected (403) for devices registered via the new device-gateway provisioning. The lomond==0.3.3 --no-deps install workaround is already on master, but the agent version itself is the remaining blocker.

Fix

  • Bump the agent to dataplicity==0.5.13, which authenticates against the new backend (both the fake_install guard and the async_process_requirements pin are updated together so the --no-deps install path still applies).
  • iptool / device_meta were removed in newer dataplicity releases, so the import_client() monkey-patches are made best-effort (try/except ImportError) — dataplicity.client.Client is still imported normally.

No other behavior changes; version bump left to the maintainer.

Testing

HA 2026.5 / Python 3.14, device provisioned via the new API: with 0.4.40 the agent logs the 403 above within seconds of each 60s poll; after this change the agent (dataplicity 0.5.13) starts and runs across multiple poll cycles with no 403, and the device comes online.

The pinned 0.4.40 agent talks to the legacy api.dataplicity.com and is
rejected (HTTP 403, agent disk-poll/sync fails) for devices provisioned via
the new device-gateway API that the integration already uses. 0.5.13 works
with the new provisioning. iptool/device_meta were dropped in newer releases,
so their compatibility monkey-patches in import_client() are made best-effort.
@AlexxIT

AlexxIT commented Jun 7, 2026

Copy link
Copy Markdown
Owner

I don't see any problems with iptool / device_meta in latest releases. Where you get this?
https://github.com/wildfoundry/dataplicity-agent/tree/v0.5.13

@Gferretta

Copy link
Copy Markdown

Hi
I has same error in HA 2026.6.1

image

@AlexxIT

AlexxIT commented Jun 7, 2026

Copy link
Copy Markdown
Owner

I checked it. I'm getting a 403 error on both the old and new versions of Dataplicity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants