Skip to content

[Bug] Network resource creation fails with "json: cannot unmarshal object into Go struct" in v0.1.1 #263

@JaysLachance

Description

@JaysLachance

Unifi Controller version=9.5.21
Unifi OS=4.3.6

"I am unable to create (unifi:index:Network) or read (unifi.get_network) network resources due to a persistent Go JSON unmarshalling error. This may be an incompatibility between the provider's expectations and the API response from the latest UniFi Network Application version

Minimal Reproducible Code:

import pulumi
from pulumiverse_unifi import network

vlan = network.Network("my-vlan", subnet="10.1.5.0/24", vlan_id=5, purpose="corporate")
lan_network = unifi.get_network(name="VLAN IoT")

json: cannot unmarshal object into Go struct field .data of type []struct { Meta unifi.meta "json:"meta"" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions