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

[CLI] Running a test is failing #2603

Open
adnanrahic opened this issue May 29, 2023 · 2 comments
Open

[CLI] Running a test is failing #2603

adnanrahic opened this issue May 29, 2023 · 2 comments
Labels
bug Something isn't working triage requires triage

Comments

@adnanrahic
Copy link
Contributor

adnanrahic commented May 29, 2023

Describe the bug

The CLI is configured, a config.yaml exists.

Running a test fails with:

tracetest test run -d ./tests/test-api.yaml -w
ERROR	
Version
CLI: v0.11.9
Server: Failed to get the server version - undefined response type

An error ocurred when executing the command	{"error": "could not run definition: could not get test info: could not execute request: json: cannot unmarshal object into Go struct field Test.specs of type []openapi.TestSpec"}

When looking in the UI, the test has been triggered and run, but the CLI is failing to return the info.

localhost_11633__page=1

To Reproduce
Steps to reproduce the behavior:

  1. Configure CLI
  2. Run a test
  3. See error

Expected behavior
Expected to run the test without issues.

Additional context
N/A

@adnanrahic adnanrahic added bug Something isn't working triage requires triage labels May 29, 2023
@schoren
Copy link
Collaborator

schoren commented May 29, 2023

@adnanrahic looks like you have a version mismatch between the cli and the server. Form your output

Version
CLI: v0.11.9
Server: Failed to get the server version - undefined response type

the CLI is v0.11.9, and the server is in a previous version, it doesn't even support reporting its version. That's why you get a Failed to get the server version - undefined response type error.

Try upgrading the server to v0.11.9, that should fix the issue

@olha23
Copy link

olha23 commented May 29, 2023

Error message proposal:

Error: Version Mismatch
The CLI version (v0.11.9) and the server version are not compatible. The server failed to provide its version information, indicating that it is running on a previous version that does not support reporting the version. 
To fix this, you'll need to make sure that both your CLI and server are using compatible versions. We recommend upgrading both of them to the latest available version. Check out our documentation for simple instructions on how to upgrade.
Thank you for using Tracetest! We apologize for any inconvenience caused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage requires triage
Projects
None yet
Development

No branches or pull requests

3 participants