I'm trying to push GraphQL schema to Apollo federation by using HTTPS serviceURL and endpoint. But I am getting the following error. How can I achieve this by skipping the SSL validation in Node.js?
reason: write EPROTO 4454038976:error:1408F10B:SSL
routines:ssl3_get_record:wrong version
number:../deps/openssl/openssl/ssl/r …
FetchError: request to https://localhost:8080/graphql failed, reason: write EPROTO 4454038976:error:1408F10B:SSL
routines:ssl3_get_record:wrong version
number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:
Code: EPROTO
Thanks in advance.
I fixed this issue by doing the following steps:
Add NODE_TLS_REJECT_UNAUTHORIZED=0 in .env file of federated service
Run the command export NODE_TLS_REJECT_UNAUTHORIZED=0
Run Apollo Push Command file of federated service
Related
main.556f577fa36f161b.js:1 Unable to get permission to notify. FirebaseError: Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker for scope ('https://website/firebase-cloud-messaging-push-scope') with the script ('https://website/firebase-messaging-sw.js'): A bad HTTP response code (404) was received when fetching the script. (messaging/failed-service-worker-registration).
I am getting this error. it's working fine locally. but after deployment, my address is https://website/project_name so it is unable to find firebase-messaging-sw.js I have tried many ways.
I have followed this tutorial-
https://medium.com/mighty-ghost-hack/angular-8-firebase-cloud-messaging-push-notifications-cc80d9b36f82
I register these files in angular.json
"src/project_name/firebase-messaging-sw.js",
"src/project_name/manifest.json",
like this and deploy locally it works for me but when I deploy it on the main server it doesn't work
I am trying to figure out how to Purge the Akamai cache through the Akamai CLI (version 1.3.1).
I am using a ~/.edgerc with :
[default]
host = *.luna.akamaiapis.net
client_token = akab-****
client_secret = ****
access_token = akab-****
These credentials provide access to the following settings:
API service name: CCU APIs
Description: Content control utility APIs
Access level: READ-WRITE
When I execute the following command in my Mac terminal:
akamai purge --section default invalidate --production --cpcode 381644
I get the following error:
Purging...... [FAIL]
API Error: 400 400 Bad Request Invalid timestamp More Info https://problems.luna.akamaiapis.net/-/pep-authn/request-error
I have tried going to https://problems.luna.akamaiapis.net/-/pep-authn/request-error but that page does not seem to exist anymore. I am not sure what to do to get this working properly. If anyone has recommendations I'd love to hear about them as I do not know how to proceed to troubleshoot this issue.
Thanks in advance,
Nicola
It would nice to try to flush the DNS cache first.
https://community.akamai.com/customers/s/question/0D54R00007EhoqNSAR/akamai-fast-purge-api-giving-invalid-timestamp-despite-efforts-to-synchronize-time?language=en_US
There is a solution here
but I cannot apply that.
It says I can use this behind a company proxy:
CYPRESS_INSTALL_BINARY=https://company.domain.com/cypress.zip npm install cypress
I've created a JFROG npm repo and uploaded the zip file. When I want to download, I get different errors:
Error: tunneling socket could not be established, statusCode=502
OR
Error: Failed downloading the Cypress binary.
Response code: 401
Response message: Unauthorized
I tried to use a local address (downloaded the zip into C:...) and it works.
EDIT:
The problem was with the proxy and the VPN. Sorry, I couldn't realize. Maybe, in the future, I create my own repo, or use the public one. Or maybe better use a cache.
I'm trying to register my app in SITServer using MobileFirst 8.0 by following this tutorial
1) Hitting this error:
mfpdev app register SITServer
Verifying server configuration... Error: Cannot connect to server
'SITServer' at 'http://xxx.xxx.xxx.xxx:9080'. Reason: Failed to set
runtime details.: Unexpected token < in JSON at position 0: HTTP 404 -
Not Found
$ mfpdev server info
2) Is it caused by the difference in server version? My Local server version is 8.0.0-2016101416 and SITServer version is 8.0.0.00-20160822-2140
I suspect this happened due to some of the changes you've made to the server.xml; you did not mention which changes you've done so I would advise to double check those (any real reason to change these?).
Either way, both HTTP and HTTPS are supported, yes.
I recently installed an openshift instance with 2 brokers 2 nodes and 3 mongodb/active mq nodes.
I used the openshift origin puppet module and it is mostly working ok.
I can create, move & deploy normal and scalable applications but when I push changes to my gear (using git) I get the following error message:
Failed to report deployment to broker. This will be corrected on the next git push. Message: Connection reset by peer - SSL_connect
The push itself is successful:
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success
But I always get this error message when I push.
I checked the node and broker logs I tried to tcpdump the servers and use wireshark to check the communication between node and broker and I tried to google the error and came up with mostly nothing.
I also went over the deployment guide and checked the installation and everything seems to be in order.
When I:
curl https://MyBroker/broker/rest/api
I get an api response and not an SSL error:
{"api_version":1.7,"data":{"API": {"href":"https://MyBroker/broker/rest/api","method":"GET","optional_params":[] ..
Any help will be appreciated.
Thank you
Keren