Cannot allocate machine via API - 'dict' object has no attribute 'lists'

Hi,
I am using c# to invoke the maas rest api. I can authenticate fine (proven by the fact i can call the api endpoint to get all machines), but when I try to allocate a machine, I get this error:

‘dict’ object has no attribute ‘lists’

I have request like so:

{

“system_id”:“ex6sxd”,

“arch”:"",

“cpu_count”:"",

“mem”:"",

“tags”:"",

“not_tags”:"",

“not_in_zone”:"",

“pool”:"",

“not_in_pool”:"",

“pod”:"",

“not_pod”:"",

“pod_type”:"",

“not_pod_type”:"",

“sunbets”:"",

“not_subnets”:"",

“storage”:"",

“fabrics”:"",

“not_fabrics”:"",

“fabric_classes”:"",

“not_fabric_classes”:"",

“agent_name”:"",

“comment”:"",

“bridge_all”:"",

“bridge_stp”:"",

“bridge_fd”:"",

“dry_run”:true,

“verbose”:true

}

What am I missing? I get this error too in C# but the same request format works fine for provisioning DNS records.

so @gurdips-1, there’s a bit more information that we’d need. take a look at this page to get an idea (no need to file a bug, yet). logs could be pretty important here. tia.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.