I’m unable to get the
auth0-react-sample to connect to the
auth0-express-js-sample as per the otherwise excellent auth0 blog post.
When I attempt the
auth0-react-sample, I get an immediate “Failed to fetch” result (in the error handler).
I’ve attempted the same URL from a command line using
wget and passing the bearer token.
wget, any attempt to connect to the port (6060) that
auth0-express-js-sample is listening on results in an TLS complaint:
wget --header="Authorization: 'Bearer "elided'" --secure-protocol=TLSv1 https://tms.byron.zeetix.com:6060 --2022-10-05 17:38:17-- https://tms.byron.zeetix.com:6060/ Resolving tms.byron.zeetix.com (tms.byron.zeetix.com)... 172.30.2.147 Connecting to tms.byron.zeetix.com (tms.byron.zeetix.com)|172.30.2.147|:6060... connected. GnuTLS: An unexpected TLS packet was received. Unable to establish SSL connection.
Since the connection appears to be established correctly, I interpret the complaint to mean that
auth0-express-js-sample is not properly completing the handshake with any attempt to connect to it.
I’ve adjusted the
clientOrigins as follows:
const clientOrigins = [ "https://localhost:4040", "https://tms.byron.zeetix.com:4040", "https://covid.tms.byron.zeetix.com:4040", "http://localhost:4040", "http://tms.byron.zeetix.com:4040", "http://covid.tms.byron.zeetix.com:4040", ];
I therefore don’t think I’m seeing a CORS issue.
I’m able to use
wget with other ports and services, and they all work fine.
I invite guidance about how to get the
BTW, this is all running on a robust AWS EC2 instance running an update-to-date Rocky Linux v8.6 system.
I’m not well-versed in
nodejs, but I do have several other
node express services that work fine. My next step is to create my own version of
auth0-express-js-sample from scratch (it doesn’t look like there’s much there).
Is there some easy or straightforward work-around or update that will get me through this bottleneck?