-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
openapi3 not working when running via ssh connected server #532
Comments
To identify the cause, From the error message ( |
Curl commad request check is success.
Why, only the test via ssh is displayed like bellow.
This difference is why I think that test via ssh don't read openapi.yaml or not working. |
Try it with runn. cURL does not have the feature to check OpenAPI Spec. |
At this time, we do not know if the problem is via SSH or OpenAPI functionality, as we have little information and cannot reproduce it at hand. |
When I execute
When no comment out
|
On the other hand, in local, (openapi server launch in local) when comment out
When no comment out openapi3: ../../../openapi3.yaml , I have bellow err.
In local, I have |
Thank you for new release. I grad to appreciate your support. |
I'm afraid I can't reproduce the error you're seeing. runn/testdata/book/sshd_local_forward_with_openapi3.yml Lines 1 to 21 in 65dbb60
Are the requests and responses as you intended at this time? Is it the same as for local? |
I made the error message friendly in v0.75.2. What errors do you get now? Are the HTTP requests ( method, path ) as you intended? |
Thank you for debug release.
Failure/Error: include failed on 'xxx xxx xx test'.steps.xxx_xxx_xxx: failed to run xxx/xxx/xxx/aws/200/normal.yaml: http request failed on 'xx xx xxxx'.steps.normal: failed to find route: no matching operation was found (GET xxx/xxxx/xxxx)
|
1.
2. Can we assume that there is no difference between these two values? |
Hi! I felt that the following response seems to me to be an incorrect definition of openAPI.
I think the Content-Type is I think that is why you are getting the following error
|
I change |
I see, no difference. |
Along with the API implementation, the definition of If the |
What do you mean? One of the things I'm having issues with is that the local output and the output over ssh are different. |
Or when ssh port forwarding, should open api yaml's server section be replaced? |
Are both environments in which you are running the runn command local?
It is assumed that the program is running locally, but instead of having it port forwarding, it changes the endpoint specification. req:
endpoint: ${APP_URL:-https://127.0.0.1}/xxxx
openapi3: ../../../openapi3.yaml It can be switched by env as above. $ APP_URL= https://xxxxxx.amazonaws.com runn run path/to.yaml |
It looks like he wants to execute HTTP requests via SSH port forwarding. |
His environment seems to be as follows. graph LR
Local[Local] -- can SSH --o xx-xx-xx[xx-xx-xx]
xx-xx-xx -- can do HTTP requests --o xxxx-xxxx.execute-api.xxxxxx.vpce.amazonaws.com[xxxx-xxxx.execute-api.xxxxxx.vpce.amazonaws.com]
Local[Local] -- can NOT do HTTP requests --x xxxx-xxxx.execute-api.xxxxxx.vpce.amazonaws.com[xxxx-xxxx.execute-api.xxxxxx.vpce.amazonaws.com]
|
I can run in testing api based openapi3 sechme in local pc.(openapi server is local docker container)
But, not working when running via ssh connected server.(openapi server is aws container)
bellow err log and
runn
bookThe text was updated successfully, but these errors were encountered: