Comments (6)
@mrcasablr Few questions:
- Are you able to access the endpoint with graphiql or using some other tool?
- Could you send me the output of following command
node -e 'console.log(process.versions)'
from just-api.
I can access the graphiql endpoint on http and https from the browser just fine.
With just-api, it works on http, but with https it fails with the error I shared.
$ curl -v https://api.example.com:8443/graphiql
* Trying xx.xx.xx.xx...
* TCP_NODELAY set
* Connected to api.example.com (xx.xx.xx.xx) port 8443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: OU=Domain Control Validated; CN=*.example.com
* start date: Oct 21 19:07:41 2016 GMT
* expire date: Oct 22 19:07:41 2019 GMT
* subjectAltName: host "api.example.com" matched cert's "*.example.com"
* issuer: C=BE; O=GlobalSign nv-sa; CN=SSL CA - SHA256 - G2
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x5651cffe8770)
> GET /graphiql HTTP/2
> Host: api.example.com:8443
> User-Agent: curl/7.59.0
> Accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200
< server: nginx
< date: Mon, 02 Jul 2018 04:26:15 GMT
< content-type: text/html;charset=UTF-8
< content-length: 4073
< vary: Accept-Encoding
< vary: Accept-Encoding
And here is the environment info -
$ node -e 'console.log(process.versions)'
{ http_parser: '2.8.0',
node: '8.11.3',
v8: '6.2.414.54',
uv: '1.20.3',
zlib: '1.2.11',
ares: '1.10.1-DEV',
modules: '57',
nghttp2: '1.32.0',
napi: '3',
openssl: '1.1.0h-fips',
icu: '60.1',
unicode: '10.0',
cldr: '32.0',
tz: '2017c' }
from just-api.
@mrcasablr Thanks for the info.
Looks like node.js https module is throwing the error during handshake.
will investigate.
from just-api.
Ugh. nodejs/node#16196
from just-api.
Yes. Node.js is doing something wrong here.
Did you try with a different version of node?
Also it would be great if you can send a reproducible scenario.
from just-api.
@kiranz Thank you for your patience! I tried with node 10.7 and it works with https://. The issue was indeed with node 8.x version. I'm closing this issue.
from just-api.
Related Issues (20)
- Question: Multiple REST endpoints in suite HOT 2
- Can't call async functions in end event for custom reports HOT 4
- Cannot add proxy, hence cannot intercept requests HOT 1
- Could you set the userContext for loop functions HOT 3
- Is it possible to use just-api as a library ? HOT 1
- [Feature request] Make just-api a module
- runSpec doesn't execute before_test HOT 2
- Use return value of one request for next one HOT 1
- How to set proxy up for GraphQL API which seats in a corporation network
- Cannot send binary payload HOT 3
- Allow GraphQL request body to be a file path HOT 2
- Intersuite dependencies at level 3 or more of nesting
- A spec MUST have a request and response minimally? HOT 1
- Difference in execution plan depending on how spec is called? HOT 2
- Failing tests in master: otherverbs and urlencodedformpost
- Post request common_headers ignored when asserting Content-Type header
- Docs missing instructions on running CI test suite HOT 1
- Suite custom_configuration from module ignores common_headers
- Enhancement: allow JSON pointer to schema within file
- Deprecate use of gulp to allow run on modern node version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from just-api.