Send a text message Using FCM and Twilio - firebase

I want to send a text message to a particular user's number stored in Firebase Database. For that I have Used FCM and Twilio. My problem is that I got following errors. (Follwed tutorial from https://angularfirebase.com/lessons/sms-texting-with-twilio/)
errrrror { Error: getaddrinfo ENOTFOUND api.twilio.com api.twilio.com:443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
code: 'ENOTFOUND',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'api.twilio.com',
host: 'api.twilio.com',
port: 443 }

Your country block twilio ,you can use proxy before you send a request to twilio.in english you can deploy your project on a external server in another country

Related

I cannot publish a sample app via Ingress.: failed to call webhook

※I am a beginner, so if you have any information you need, please comment.
Based on the yaml file, I am trying to publish a sample app that has already been launched in Pod via Ingress.
$kubectl apply -f ./overlays/stg/bookinfo-ingress.yaml
■Errormessage
Error from server (InternalError): error when creating "./overlays/stg/bookinfo-ingress.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": failed to call webhook: Post "https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1/ingresses?timeout=10s": x509: certificate signed by unknown authority

Invited owner of firebase project can't deploy cloud functions

I have a firebase project where I invited a developer as an owner. He got email and accepted the invitation. Yet he can't deploy functions to that project. He also tried with different internet connections. It's failing with the error below....
! functions: Upload Error: Server Error. read ECONNRESET
Error: Server Error. read ECONNRESET
firebase-debug.log
[debug] [2020-05-13T23:49:33.202Z] >>> HTTP REQUEST PUT https://storage.googleapis.com/gcf-upload-us-central1....
<request body omitted>
[warn] ! functions: Upload Error: Server Error. read ECONNRESET
[debug] [2020-05-13T23:49:55.186Z] Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
[error]
[error] Error: Server Error. read ECONNRESET
index.js file contains a simple function that was generated automatically by firebase init command.This is what index.js file contains..
const functions = require("firebase-functions");
exports.helloWorld = functions.https.onRequest((request, response) => {
response.send("Hello from Firebase!");
});
There was a problem with the google api link in my country. For some reason, these google API were blocked here.

SSL error when creating vue.js app using api platform client generator

I tried to create client app of my API created using API Platform. I follow this guide https://api-platform.com/docs/client-generator/vuejs/.
I use Laravel Homestead for the VM when developing it.
I've added myapp .crt file to Keychan Access.
Problem was, when I try to execute
generate-api-platform-client --generator vue https://myapp-api.local/api src/
It return error message like this:
{
api: Api { entrypoint: 'https://myapp-api.local/api', resources: [] },
error: FetchError: request to https://myapp-api.local/api failed, reason: unable to verify the first certificate
at ClientRequest.<anonymous> (/Users/permana.jayanta/.config/yarn/global/node_modules/node-fetch/index.js:133:11)
at ClientRequest.emit (events.js:209:13)
at TLSSocket.socketErrorListener (_http_client.js:406:9)
at TLSSocket.emit (events.js:209:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
name: 'FetchError',
message: 'request to https://myapp-api.local/api failed, reason: unable to verify the first certificate',
type: 'system',
errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
},
response: undefined,
status: undefined
}
I'm thinking this is related with SSL certificate. That node doesn't recognise the certificate. How to make node.js recognise the custom SSL certificate generated by Homestead?
it failed to verify https signature.
To disable it, type in shell
export NODE_TLS_REJECT_UNAUTHORIZED=0

PHPMailer: Error number 2. "Error notice: stream_socket_client()

I am getting the following error (using the WP Mail SMTP Plugin).
Any idea how to resolve this?
(All ports, passwords, etc are correct)
Thanks
Versions:
WordPress: 4.9.1
WordPress MS: No
PHP: 5.6.31-4+wpengine10
WP Mail SMTP: 1.2.2
Params:
Mailer: smtp
Constants: No
ErrorInfo: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Host: smtp.hosts.co.uk
Port: 465
SMTPSecure: ssl
SMTPAutoTLS: bool(false)
SMTPAuth: bool(true)
Server:
OpenSSL: Yes
SMTP Debug:
2018-01-15 15:54:32 Connection: opening to ssl://smtp.hosts.co.uk:465, timeout=300, options=array ()
2018-01-15 15:54:39 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to ssl://smtp.hosts.co.uk:465 (Connection timed out)
2018-01-15 15:54:39 SMTP ERROR: Failed to connect to server: Connection timed out (110)
2018-01-15 15:54:39 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
It looks like your ISP is blocking outbound SMTP. How to diagnose this is covered in the troubleshooting guide linked from the error message.
I can get to your host on that port, so it's definitely an issue with your network, not your code. You should ask your ISP or read their support docs about how they want you to send email.

Flex application not loading in VPN

My Flex application is not loading in VPN Network.
Error message: Connection Problems: Channel.Connect.Failed
error NetConnection.Call.Failed: HTTP:
Failed: url: ‘http://172.16.46.246/PASSUS/messagebroker/amf’
-[RPC Fault faultString=”Send failed” faultCode=”Client.Error.MessageSend”
faultDetail=”Channel.Connect.Failed
error NetConnection.Call.Failed: HTTP:
Failed: url: http://XX.XX.XX.XX/PASSUS/messagebroker/amf’”]*
Change your channel url in services-config.xml:
"/PASSUS/messagebroker/amf"
Do not use ip address. You can look here for detail moving to production server
And here send failed error

Resources