Skip to content

Error importing JSON Form - cannot unmarshal array into Go struct field Response.imported of type services.ImportedResponse #65

@davhparry

Description

@davhparry

version 0.5.0

Error when importing a JSON Form

ipctl import jsonform 'bundles/jsonform/Port Turn Up.jsonform.json' --config ./bin/config --profile local --replace --verbose
2025-03-12T09:37:49Z INF connection timeout is 5 second(s)
2025-03-12T09:37:49Z INF Creating new http client
2025-03-12T09:37:49Z INF POST https://localhost:3443/login
2025-03-12T09:37:50Z INF HTTP response is 200 OK
2025-03-12T09:37:50Z INF GET https://localhost:3443/json-forms/forms/Port%20Turn%20Up
2025-03-12T09:37:50Z INF HTTP response is 200 OK
2025-03-12T09:37:50Z INF DELETE https://localhost:3443/json-forms/forms
2025-03-12T09:37:50Z INF HTTP response is 200 OK
2025-03-12T09:37:50Z INF POST https://localhost:3443/json-forms/import/forms
2025-03-12T09:37:51Z INF HTTP response is 200 OK
Error: json: cannot unmarshal array into Go struct field Response.imported of type services.ImportedResponse

2025-03-12T09:37:51Z FTL error="json:

Port Turn Up.jsonform.json

I've attached the form in question

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions