Can't connect to external API using Laravel Sail - laravel

The project was working fine, suddenly I couldn't connection to Stripe nor Mailtrap APIs.
Stripe error
Could not connect to Stripe (https://api.stripe.com/v1/setup_intents). Please check your internet connection and try again. If this problem persists, you should check Stripe's service status at https://twitter.com/stripestatus, or let us know at support#stripe.com. (Network error [errno 6]: Could not resolve host: api.stripe.com)
Mailtrap error
Connection could not be established with host "smtp.mailtrap.io:587": stream_socket_client(): php_network_getaddresses: getaddrinfo for smtp.mailtrap.io failed: Temporary failure in name resolution
I tried to delete the containers and build them again with --no-cache
sail down -v
sail build --no-cache
But I got an error running apt-get commands because it can't reach to the endpoint.

Related

Laravel Forge meilisearch integrating - production.ERROR: cURL error 7: Failed to connect to 146.190.87.214 port 7700: Connection refused

I am getting this error when I try to integrate meilisearch on laravel forge.
I have 2 servers, one for the app and the other one is for the meilisearch.
on laravel forge, on networking tab, I have ticked "can connect to" also.
production.ERROR: cURL error 7: Failed to connect to 146.190.87.214 port 7700: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://146.190.87.214:7700//indexes/songs/search {"exception":"[object] (MeiliSearch\Exceptions\CommunicationException(code: 0): cURL error 7: Failed to connect to 146.190.87.214 port 7700: Connection refused
this is my .env
SCOUT_DRIVER=meilisearch
SCOUT_QUEUE=true
MEILISEARCH_HOST=http://146.190.87.214:7700/
MEILISEARCH_KEY=****
Can anyone help me please?
I tried this like someone has suggested already, but it is not working and few other things.
sudo su
echo "deb [trusted=yes] https://apt.fury.io/meilisearch/ /" > /etc/apt/sources.list.d/fury.list
apt update
apt install meilisearch-http=0.20.0 -V
meilisearch
and
php artisan storage:link
php artisan passport:install

Facing this error when i upload laraval app to live server

This error occur when i trying to hit api from live server.But locally api running correctly. I got this error
cURL error 28: Failed to connect to testapi.certccie.com port 443: Connection timed out (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
Here we uploaded error image
https://i.stack.imgur.com/MKUZn.png
Maybe this is because of your host that your host dont access to certccie.com.
Try on another host.

WebSocket connection to 'protocol=7&client=js&version=4.3.1&flash=false' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

I was implementing laravel websockets package in project it is working fine in my local machine but on server first it was giving error of Connection timeout That problem was solved when add TCP port in aws security group but after that it starts giving new error
WebSocket connection to 'ws://52.64.101.38:6001/app/ABCDEF?protocol=7&client=js&version=4.3.1&flash=false' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Here are errors I am getting in console when try to connect websocket server
I was searching about this error i found this github thread . Which is saying try to bound with 0.0.0.0 but I dont know what does it means,
https://github.com/GeniusesOfSymfony/WebSocketBundle/issues/251
I was also getting this error on local machine but was later resolved when i downgrade package version 1.6
NOTE: I am using ubuntu server aws services

Error trying to start business network. Last error was Error: Error: 14 UNAVAILABLE: Trying to connect an http1.x server

Hi I am trying to run developer tutorial on hyperledger-composer from https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial.html
I have setup the development environment successfully.
I receive the following error
Error trying to start business network. Error: Unable to initalize
channel. Attempted to contact 1 Peers. Last error was Error: Error: 14
UNAVAILABLE: Trying to connect an http1.x server
while I run the following command
composer network start --networkName tutorial-network --networkVersion
0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card
PeerAdmin#hlfv1 --file networkadmin.card
I have checked the fabric is running and is listening to business network archive
"Listing Business Network Archive from tutorial-network#0.0.1.bna
Identifier:tutorial-network#0.0.1
Name:tutorial-network
Version:0.0.1
Command succeeded"
P.S I am behind firewall/proxy
Configuration
Node #8.11.3
composer #0.19
Mac OS High Sierra

having problems with installing composer

I'm having problems installing composer. The error being displayed is:
Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org
Proxy http####://10.50.7.154:3128### [from Internet Settings] failed with errors:
Failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Request to https://getcomposer.org/installer failed with errors:
Failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
That's a proxy problem, right there. Please step away from the building you are in and find a regular coffeeshop with regular broadband WiFi.
Hope this helps.

Resources