-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled rejection Error: getaddrinfo ENOTFOUND #966
Comments
Hi @sf-tyrone - You mention using the command line. Are you executing the commands from the command line? Or from VS Code? Can you re-paste the error you receive? The text in the issue description has a link to another of our repos so it's unclear what the error is. What version of the SFDX CLI are you using? What version of the Salesforce extensions within VS Code are you using? |
Hi,
I even uninstalled sfdx and the salesforce extension packages and
reinstalled them. So I should have he latest version also I get the error
from the Visual code terminal.
sfdx version = sfdx-cli/7.93.1-762bca056d darwin-x64 node-v14.15.4
VS version = Version: 1.55.0
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Darwin x64 19.3.0
the command i use is = sfdx force:source:push -f
The output and error was this =
(node:65686) Warning: The .forceignore file doesn't adhere to .gitignore
format which will be the default behavior starting in Spring '21 release.
More information on .gitignore format here:
https://git-scm.com/docs/gitignore. Fix the following lines in your
.forceignore and add '# .forceignore v2' to your .forceignore file to
switch to the new behavior.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:65686) Warning: force-app/main/default/siteDotComSites/catdev1.site
*** Deploying with REST ***
Job ID | 0Af26*********
SOURCE PROGRESS | ████████████████████████░░░░░░░░░░░░░░░░ | 2068/3379
ComponentsERROR: Error: getaddrinfo ENOTFOUND
customer-platform-4417.cs81.my.salesforce.com
Unhandled rejection Error: getaddrinfo ENOTFOUND
customer-platform-4417.cs81.my.salesforce.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
Have also added some attachments as well.
Also before using the command line i get this:
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Kind Regards
Tyrone
…On Thu, Apr 1, 2021 at 11:10 PM smaddox-sf ***@***.***> wrote:
Hi @sf-tyrone <https://github.com/sf-tyrone> - You mention using the
command line. Are you executing the commands from the command line? Or from
VS Code?
Can you re-paste the error you receive? The text in the issue description
has a link to another of our repos so it's unclear what the error is.
What version of the SFDX CLI are you using?
What version of the Salesforce extensions within VS Code are you using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/forcedotcom/salesforcedx-vscode/issues/3110#issuecomment-812201255>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATPVYGYKVNSKXSQFQTSIJBDTGTVN5ANCNFSM42GXU3GQ>
.
--
Kind Regards
Tyrone Reid
*Director*
*Software Everything Ltd*
|
@sf-tyrone Thank you for reaching out to us about this issue. I've noticed that in the output from above it looks like Can you try adding one of the following? Please let us know if this unblocks you. Either of the following should switch the deploy type back to SOAP: |
Hi,
I did not work. I still got the same error.
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Tyrones-MacBook-Pro-2:CheckaTradeDev tyronereid$ sfdx config:set
restDeploy=false --global
=== Set Config
Name Value Success
────────── ───── ───────
restDeploy false true
Tyrones-MacBook-Pro-2:CheckaTradeDev tyronereid$ sfdx force:source:push -f
(node:16003) Warning: The .forceignore file doesn't adhere to .gitignore
format which will be the default behavior starting in Spring '21 release.
More information on .gitignore format here:
https://git-scm.com/docs/gitignore. Fix the following lines in your
.forceignore and add '# .forceignore v2' to your .forceignore file to
switch to the new behavior.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:16003) Warning: force-app/main/default/siteDotComSites/catdev1.site
*** Deploying with SOAP ***
Job ID | 0Af2600001B7prKCAR
SOURCE PROGRESS | █████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 1095/3364
ComponentsERROR: Error: getaddrinfo ENOTFOUND
customer-platform-4417.cs81.my.salesforce.com
Unhandled rejection Error: getaddrinfo ENOTFOUND
customer-platform-4417.cs81.my.salesforce.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
Kind Regards
Tyrone
…On Wed, Apr 7, 2021 at 9:57 PM Shelby Holden ***@***.***> wrote:
@sf-tyrone <https://github.com/sf-tyrone> Thank you for reaching out to
us about this issue.
I've noticed that in the output from above it looks like sfdx
force:source:push -f is using REST by default. This was a recent change
made in the CLI (See March 4th
<https://github.com/forcedotcom/cli/blob/main/releasenotes/README.md>).
Can you try adding one of the following? Please let us know if this
unblocks you.
Either of the following should switch the deploy type back to SOAP:
sfdx config:set restDeploy=false --global
Or setting an environment variable SFDX_REST_DEPLOY to false
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/forcedotcom/salesforcedx-vscode/issues/3110#issuecomment-815257876>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATPVYGYXHUGET5XSPEXBHELTHTBK3ANCNFSM42GXU3GQ>
.
--
Kind Regards
Tyrone Reid
*Director*
*Software Everything Ltd*
|
Hi,
Those links don’t help. They are just reporting the same or similar issue.
I can confirm I can pull from the scratch org and I can even create a new
apex class from vs code and save it where the new apex class appears in the
scratch org.
So the failures regarding sfdx push does not make sense at all.
Is there nothing you can do to fix this issue?
My internet connection is completely fine so the first link does not apply
to my situation. I also tried doing the push in a completely different
location on a different wifi and I got the same error so it proves it’s not
the wifi or my computer as other people are getting the same issue. It’s
something to do with the CLI and sfdx.
Kind Regards
Tyrone
On Sat, 17 Apr 2021 at 19:54, Paweł Idczak ***@***.***> wrote:
similar issues raised:
#529 <#529>
#340 <#340>
seems growing problem
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#966 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATPVYGY7C7WTF2IRLGZQLFTTJHKP7ANCNFSM42VIUUVA>
.
--
Kind Regards
Tyrone Reid
*Director*
*Software Everything Ltd*
|
@sf-tyrone - ENOTFOUND is a DNS issue that the CLI is reporting. I'm guessing (hoping) that issue has been fixed for you. The remaining issue is that the CLI should generally handle these low level nodejs errors in a better way, ideally with options for retries. I'm going to close this in favor of #340. |
Please don’t close this ticket as the issue is not fixed.
I can not fix the issue and need help please.
Kind Regards
Tyrone
On Tue, 18 May 2021 at 19:31, Steve Hetzel ***@***.***> wrote:
@sf-tyrone <https://github.com/sf-tyrone> - ENOTFOUND is a DNS issue that
the CLI is reporting. I'm guessing (hoping) that issue has been fixed for
you. The remaining issue is that the CLI should generally handle these low
level nodejs errors in a better way, ideally with options for retries. I'm
going to close this in favor of #340
<#340>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#966 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATPVYG2IXDRJTWQBGAIYM3LTOKXBVANCNFSM42VIUUVA>
.
--
Kind Regards
Tyrone Reid
*Director*
*Software Everything Ltd*
|
What is the output of |
I get a similiar issue everyday for the past 2 years. This one should be reopened. Retrying the operation usually works. Would it be possible the handle this error as it seems to be related to the reporting of status as the deployment continues as normal on the server. Adding a retry on error should do the trick. |
I have the same problem with my Ubuntu 20.04. Any suggestions are welcome, I need to fix the problem ASAP. |
I'm having the same issue on sfdx-cli/7.112.1 linux-x64 node-v14.17.4
and
|
I have to share something. I tried the same deployment script connected to my phone 4g internet and had no issues. The strange thing is that with my Dell - ubuntu 20.04 and my home's internet I've got this error. With my Macbook Pro 2016 and my home's internet I have NO errors. |
when
Summary
when i try to create a new scratch org , i keep getting this error: https://github.com/forcedotcom/cli
Steps To Reproduce:
create a scracth org and then use the sfdx command line "sfdx force:source:push -f"
Expected result
meta to be pushed into scratch org
Actual result
Unhandled rejection Error: getaddrinfo ENOTFOUND ...........at GetAddrInfoReqWrap.onlookup [as oncomplete]
Additional information
Feel free to attach a screenshot.
VS Code Version: 1.55.0
SFDX CLI Version:
OS and version: Darwin x64 19.3.0
The text was updated successfully, but these errors were encountered: