Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target Servers import needs better error message #535

Closed
kurtkanaskie opened this issue Sep 12, 2024 · 0 comments · Fixed by #537
Closed

Target Servers import needs better error message #535

kurtkanaskie opened this issue Sep 12, 2024 · 0 comments · Fixed by #537

Comments

@kurtkanaskie
Copy link
Collaborator

There is no indication of what the error is upon failure even when using APIGEECLI_DEBUG=true and/or --print-output=true

APIGEECLI_DEBUG=true apigeecli --org=$ORG --env=test targetservers import --file test__targetservers.json 
DEBUG: 2024/09/12 11:03:54 targetservers.go:271: Found 23 target servers in the file
DEBUG: 2024/09/12 11:03:54 targetservers.go:272: Create target servers with 4 connections
DEBUG: 2024/09/12 11:03:55 targetservers.go:406: Completed targetserver: P2-cicd-ts1
DEBUG: 2024/09/12 11:03:55 targetservers.go:406: Completed targetserver: ApigeeMgmtServer
DEBUG: 2024/09/12 11:03:55 targetservers.go:406: Completed targetserver: P2-D1-ts1
DEBUG: 2024/09/12 11:03:55 targetservers.go:406: Completed targetserver: P3-D1-ts1
DEBUG: 2024/09/12 11:03:55 targetservers.go:406: Completed targetserver: P3-bootstrap-apiproxy
DEBUG: 2024/09/12 11:03:55 targetservers.go:406: Completed targetserver: foo
DEBUG: 2024/09/12 11:03:55 targetservers.go:406: Completed targetserver: ghcapiserver
DEBUG: 2024/09/12 11:03:56 targetservers.go:406: Completed targetserver: oauth-v1
DEBUG: 2024/09/12 11:03:56 targetservers.go:406: Completed targetserver: oauth-v1-xpo
DEBUG: 2024/09/12 11:03:56 targetservers.go:406: Completed targetserver: pingstatus-oauth-v1
DEBUG: 2024/09/12 11:03:56 targetservers.go:406: Completed targetserver: parameterize-target-endpoint
DEBUG: 2024/09/12 11:03:56 targetservers.go:406: Completed targetserver: pingstatus-tls-v1
DEBUG: 2024/09/12 11:03:56 targetservers.go:406: Completed targetserver: pingstatus-tls-v1-two-way
DEBUG: 2024/09/12 11:03:56 targetservers.go:406: Completed targetserver: pingstatus-v1
DEBUG: 2024/09/12 11:03:57 targetservers.go:406: Completed targetserver: pingstatus-v1-mocktarget-sharedflows
DEBUG: 2024/09/12 11:03:57 targetservers.go:406: Completed targetserver: pingstatus-v1-sharedflows
DEBUG: 2024/09/12 11:03:57 targetservers.go:406: Completed targetserver: projectname-proxyname-v1
DEBUG: 2024/09/12 11:03:57 targetservers.go:406: Completed targetserver: sharedflows-test-proxy-v1
DEBUG: 2024/09/12 11:03:57 targetservers.go:406: Completed targetserver: statistics-bug
DEBUG: 2024/09/12 11:03:57 targetservers.go:406: Completed targetserver: target-errors
DEBUG: 2024/09/12 11:03:57 targetservers.go:406: Completed targetserver: target-errors-v1
DEBUG: 2024/09/12 11:03:57 targetservers.go:406: Completed targetserver: target-errors-v2
DEBUG: 2024/09/12 11:03:58 targetservers.go:406: Completed targetserver: target-errors-v3
Error: could not import targetserver, apigee responded with HTTP 400: 400 Bad Request

The error is on the target server: pingstatus-tls-v1-two-way

srinandan added a commit that referenced this issue Sep 12, 2024
@srinandan srinandan linked a pull request Sep 12, 2024 that will close this issue
ssvaidyanathan added a commit that referenced this issue Sep 12, 2024
fix: adds ts name to the error #535
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 a pull request may close this issue.

1 participant