Skip to content

Conversation

@ad-m
Copy link
Collaborator

@ad-m ad-m commented Aug 31, 2019

Fail due 500 on public-API on fetching created credential. Credential and agent have been created.

2019/08/31 22:35:41 [DEBUG] ReferenceTransformer: "hyperone_agent.foo" references: []
2019/08/31 22:35:41 [DEBUG] Reading Agent: 5d6af63d297c5c37612c35ea
2019/08/31 22:35:42 [DEBUG] ReferenceTransformer: "hyperone_agent_certificate.foo" references: []
2019/08/31 22:35:42 [DEBUG] Reading Agent credential: 5d6af63d297c5c37612c35ea:5d6af63d297c5c37612c35ee
2019/08/31 22:35:42 [ERROR] <root>: eval: *terraform.EvalRefresh, err: 500 Internal Server Error
2019/08/31 22:35:42 [ERROR] <root>: eval: *terraform.EvalSequence, err: 500 Internal Server Error
2019/08/31 22:35:42 [DEBUG] New state was assigned lineage "9ac52ca0-7284-f2cd-b0ca-c13446a74ae8"
--- FAIL: TestAccHyperoneAgentCertificate_basic (1.56s)
    testing.go:569: Step 0 error: errors during apply:
        
        Error: 500 Internal Server Error
        
          on /tmp/tf-test929665259/main.tf line 7:
          (source code not available)
        
        
    testing.go:630: Error destroying resource! WARNING: Dangling resources
        may exist. The full state and error is shown below.
        
        Error: errors during refresh: 500 Internal Server Error
        
        State: <nil>
FAIL
FAIL    github.com/hyperonecom/terraform-provider-hyperone/hyperone     1.574s

In CLI:

00:45 $ h1 agent credential show --agent 5d6af63d297c5c37612c35ea --credential 5d6af63d297c5c37612c35ee
error: 500 {"message":"Cannot read property 'find' of undefined","status":500}
error: Cannot read property 'find' of undefined

@ad-m ad-m requested a review from fredericosilva August 31, 2019 22:46
@ad-m
Copy link
Collaborator Author

ad-m commented Aug 31, 2019

Delete returns {} instead of credential.

2019/08/31 22:48:40 [DEBUG] Starting graph walk: walkDestroy
2019/08/31 22:48:40 [DEBUG] hyperone_agent_certificate.foo: applying the planned Delete change
2019/08/31 22:48:40 [DEBUG] Deleting Agent credential: 5d6af947297c5c37612c3608
2019/08/31 22:48:40 [DEBUG] hyperone_agent_certificate.foo: apply errored, but we're indicating that via the Error pointer rather than returning it: undefined response type
2019/08/31 22:48:40 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: undefined response type
2019/08/31 22:48:40 [ERROR] <root>: eval: *terraform.EvalSequence, err: undefined response type
2019/08/31 22:48:40 [ERROR] <root>: eval: *terraform.EvalOpFilter, err: undefined response type
2019/08/31 22:48:40 [DEBUG] New state was assigned lineage "af7c6d83-f64c-d111-511e-a35a402873af"

@ad-m
Copy link
Collaborator Author

ad-m commented Sep 1, 2019

I suggest add tag on following endpoint:
image

@fredericosilva
Copy link
Contributor

@ad-m

  • Cannot read property 'find' of undefined" fixed
  • use PUT /tag

All fine now?

@ad-m
Copy link
Collaborator Author

ad-m commented Sep 3, 2019

@fredericosilva still:

2019/08/31 22:48:40 [DEBUG] hyperone_agent_certificate.foo: apply errored, but we're indicating that via the Error pointer rather than returning it: undefined response type

See TravisCI

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.

3 participants