Closed satoyoshiki closed 7 years ago
In the above error report you have shared your personalAccessToken
. You must revoke it to prevent abuse.
Same issue with me. I can share the packages too, if needed. I didn't share to not overpopulate this topic.
[Enter steps to reproduce below:]
Atom Version: 1.12.6 Electron Version: 1.3.9 System: Microsoft Windows 7 Enterprise Thrown From: sync-settings package, v0.7.2
Uncaught SyntaxError: Unexpected token g in JSON at position 0
At file:///C:/Users/gcortes/AppData/Local/atom/app-1.12.6/resources/app.asar/static/index.html#%7B%22initialPaths%22%3A%5B%22C%3A%5C%5CDevelopment%5C%5CMIM%5C%5CLearning%5C%5CJavascript%22%5D%2C%22locationsToOpen%22%3A%5B%7B%22pathToOpen%22%3A%22C%3A%5C%5CDevelopment%5C%5CMIM%5C%5CLearning%5C%5CJavascript%22%2C%22initialLine%22%3Anull%2C%22initialColumn%22%3Anull%2C%22forceAddToWindow%22%3Afalse%7D%5D%2C%22windowInitializationScript%22%3A%22C%3A%5C%5CUsers%5C%5Cgcortes%5C%5CAppData%5C%5CLocal%5C%5Catom%5C%5Capp-1.12.6%5C%5Cresources%5C%5Capp.asar%5C%5Csrc%5C%5Cinitialize-application-window.js%22%2C%22resourcePath%22%3A%22C%3A%5C%5CUsers%5C%5Cgcortes%5C%5CAppData%5C%5CLocal%5C%5Catom%5C%5Capp-1.12.6%5C%5Cresources%5C%5Capp.asar%22%2C%22devMode%22%3Afalse%2C%22safeMode%22%3Afalse%2C%22profileStartup%22%3Afalse%2C%22clearWindowState%22%3Afalse%2C%22env%22%3A%7B%22AIF_HOME%22%3A%22C%3A%5C%5CAIF_900010_HF%5C%5Cdist%22%2C%22ALLUSERSPROFILE%22%3A%22C%3A%5C%5CProgramData%22%2C%22AMDOCS_PM_HOME%22%3A%22C%3A%5C%5Capm%5C%5CAPM9.0.0.pb03_hf03%22%2C%22APPDATA%22%3A%22C%3A%5C%5CUsers%5C%5Cgcortes%5C%5CAppData%5C%5CRoaming%22%2C%22ARISHOME71%22%3A%22C%3A%5C%5CProgram%20Files%5C%5CARIS7.1%5C%5C%22%2C%22ATOM_HOME%22%3A%22C%3A%5C%5CUsers%5C%5Cgcortes%5C%5C.atom%22%2C%22ATOM_NODE_URL%22%3A%22http%3A%2F%2Fgh-contractor-zcbenz.s3.amazonaws.com%2Fatom-shell%2Fdist%20%2FM%22%2C%22BEA_HOME%22%3A%22C%3A%5C%5CBEA1212%22%2C%22ChocolateyInstall%22%3A%22C%3A%5C%5CProgramData%5C%5Cchocolatey%22%2C%22ChocolateyLastPathUpdate%22%3A%22Mon%20Nov%2021%2010%3A45%3A54%202016%22%2C%22CMDER_ROOT%22%3A%22C%3A%5C%5CDevelopment%5C%5COMS%5C%5CTools%5C%5Ccmder%22%2C%22CommonProgramFiles%22%3A%22C%3A%5C%5CProgram%20Files%20(x86)%5C%5CCommon%20Files%22%2C%22CommonProgramFiles(x86)%22%3A%22C%3A%5C%5CProgram%20Files%20(x86)%5C%5CCommon%20Files%22%2C%22CommonProgramW6432%22%3A%22C%3A%5C%5CProgram%20Files%5C%5CCommon%20Files%22%2C%22COMPUTERNAME%22%3A%22GCORTES03%22%2C%22ComSpec%22%3A%22C%3A%5C%5CWINDOWS%5C%5Csystem32%5C%5Ccmd.exe%22%2C%22DEV%22%3A%22C%3A%5C%5CDevelopment%22%2C%22DEV_HOME%22%3A%22C%3A%5C%5Coms%5C%5C1701-Dev-Main%5C%5Ccust%5C%5Coms%5C%5Cbb%22%2C%22FP_NO_HOST_CHECK%22%3A%22NO%22%2C%22GOOGLE_API_KEY%22%3A%22AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q%22%2C%22HF_DB_PASS%22%3A%22GCORTES%22%2C%22HF_DB_PORT%22%3A%221521%22%2C%22HF_DB_USER%22%3A%22GCORTES%22%2C%22HOMEDRIVE%22%3A%22C%3A%22%2C%22HOMEPATH%22%3A%22%5C%5CUsers%5C%5Cgcortes%22%2C%22HOST%22%3A%22localhost%22%2C%22JAVAWS_VM_ARGS%22%3A%22-Xdebug%20-Xrunjdwp%3Atransport%3Ddt_socket%2Cserver%3Dy%2Csuspend%3Dn%2Caddress%3D8585%22%2C%22JAVA_HOME%22%3A%22C%3A%5C%5CProgra~1%5C%5CJava%5C%5Cjdk1.7.0_60%22%2C%22JAVA_HOME_32%22%3A%22C%3A%5C%5CProgram%20Files%20(x86)%5C%5CJava%5C%5Cjre7%5C%5C%22%2C%22LOCALAPPDATA%22%3A%22C%3A%5C%5CUsers%5C%5Cgcortes%5C%5CAppData%5C%5CLocal%22%2C%22LOGONSERVER%22%3A%22%5C%5C%5C%5CSTLDC1%22%2C%22MAVEN_HOME%22%3A%22C%3A%5C%5Capache-maven-3.2.5%22%2C%22MAVEN_OPTS%22%3A%22-Xmx1024m%20-XX%3AMaxPermSize%3D256M%20-Dfile.encoding%3D%5C%22UTF-8%5C%22%22%2C%22NUMBER_OF_PROCESSORS%22%3A%224%22%2C%22OMS_DB_HOST%22%3A%22scolin01%22%2C%22OMS_DB_SID%22%3A%22VVLOMSB%22%2C%22ORACLE_HOME%22%3A%22O%3A%5C%5Cora1210%22%2C%22OS%22%3A%22Windows_NT%22%2C%22Path%22%3A%22C%3A%5C%5CPython35%5C%5CScripts%5C%5C%3BC%3A%5C%5CPython35%5C%5C%3BO%3A%5C%5Cora1210%5C%5CBIN%3BO%3A%5C%5Cora1210%5C%5CBIN%3BC%3A%5C%5CWINDOWS%5C%5Csystem32%3BC%3A%5C%5CWINDOWS%3BC%3A%5C%5CWINDOWS%5C%5CSystem32%5C%5CWbem%3BC%3A%5C%5CWINDOWS%5C%5CSystem32%5C%5CWindowsPowerShell%5C%5Cv1.0%5C%5C%3BC%3A%5C%5CProgram%20Files%5C%5CPerforce%3BC%3A%5C%5Capache-maven-3.2.5%5C%5Cbin%3BC%3A%5C%5CProgra~1%5C%5CJava%5C%5Cjdk1.7.0_60%5C%5Cbin%3BC%3A%5C%5CProgram%20Files%20(x86)%5C%5CPerforce%3BC%3A%5C%5CProgram%20Files%20(x86)%5C%5CPerforce%5C%5CDVCS%5C%5C%3BC%3A%5C%5CDevelopment%5C%5COMS%5C%5CTools%5C%5Ccmder%5C%5C%3BC%3A%5C%5CProgram%20Files%5C%5CMicrosoft%20SQL%20Server%5C%5C130%5C%5CTools%5C%5CBinn%5C%5C%3BC%3A%5C%5CProgram%20Files%5C%5CGit%5C%5Ccmd%3BC%3A%5C%5CProgramData%5C%5Cchocolatey%5C%5Cbin%3BC%3A%5C%5CProgram%20Files%5C%5Cnodejs%5C%5C%3BC%3A%5C%5CProgram%20Files%20(x86)%5C%5CYarn%5C%5Cbin%3BC%3A%5C%5Capache-maven-3.2.5%5C%5Cbin%3BO%3A%5C%5Cora1210%5C%5CBIN%3BC%3A%5C%5CUsers%5C%5Cgcortes%5C%5CAppData%5C%5CLocal%5C%5CPandoc%5C%5C%3BC%3A%5C%5Cbabun%5C%5C.babun%3BC%3A%5C%5CProgram%20Files%20(x86)%5C%5CMicrosoft%20VS%20Code%5C%5Cbin%3BC%3A%5C%5CUsers%5C%5Cgcortes%5C%5CAppData%5C%5CLocal%5C%5Catom%5C%5Cbin%3BC%3A%5C%5CUsers%5C%5Cgcortes%5C%5CAppData%5C%5CRoaming%5C%5Cnpm%3BC%3A%5C%5CUsers%5C%5Cgcortes%5C%5CAppData%5C%5CLocal%5C%5CYarn%5C%5C.bin%22%2C%22PATHEXT%22%3A%22.COM%3B.EXE%3B.BAT%3B.CMD%3B.VBS%3B.VBE%3B.JS%3B.JSE%3B.WSF%3B.WSH%3B.MSC%3B.PY%3B.PYW%22%2C%22personal%22%3A%22C%3A%5C%5CDevelopment%5C%5COMS%5C%5CPersonalDocs%22%2C%22PROCESSOR_ARCHITECTURE%22%3A%22x86%22%2C%22PROCESSOR_ARCHITEW6432%22%3A%22AMD64%22%2C%22PROCESSOR_IDENTIFIER%22%3A%22Intel64%20Family%206%20Model%2058%20Stepping%209%2C%20GenuineIntel%22%2C%22PROCESSOR_LEVEL%22%3A%226%22%2C%22PROCESSOR_REVISION%22%3A%223a09%22%2C%22ProgramData%22%3A%22C%3A%5C%5CProgramData%22%2C%22ProgramFiles%22%3A%22C%3A%5C%5CProgram%20Files%20(x86)%22%2C%22ProgramFiles(x86)%22%3A%22C%3A%5C%5CProgram%20Files%20(x86)%22%2C%22ProgramW6432%22%3A%22C%3A%5C%5CProgram%20Files%22%2C%22PSModulePath%22%3A%22C%3A%5C%5CWINDOWS%5C%5Csystem32%5C%5CWindowsPowerShell%5C%5Cv1.0%5C%5CModules%5C%5C%22%2C%22PUBLIC%22%3A%22C%3A%5C%5CUsers%5C%5CPublic%22%2C%22SESSIONNAME%22%3A%22Console%22%2C%22SystemDrive%22%3A%22C%3A%22%2C%22SystemRoot%22%3A%22C%3A%5C%5CWINDOWS%22%2C%22TEMP%22%3A%22C%3A%5C%5CUsers%5C%5Cgcortes%5C%5CAppData%5C%5CLocal%5C%5CTemp%22%2C%22TMP%22%3A%22C%3A%5C%5CUsers%5C%5Cgcortes%5C%5CAppData%5C%5CLocal%5C%5CTemp%22%2C%22UATDATA%22%3A%22C%3A%5C%5CWINDOWS%5C%5CCCM%5C%5CUATData%5C%5CD9F8C395-CAB8-491d-B8AC-179A1FE1BE77%22%2C%22USERDNSDOMAIN%22%3A%22CORP.AMDOCS.COM%22%2C%22USERDOMAIN%22%3A%22NTNET%22%2C%22USERDOMAIN_ROAMINGPROFILE%22%3A%22NTNET%22%2C%22USERNAME%22%3A%22gcortes%22%2C%22USERPROFILE%22%3A%22C%3A%5C%5CUsers%5C%5Cgcortes%22%2C%22USER_MEM_ARGS%22%3A%22-XX%3APermSize%3D1024M%20-XX%3AMaxPermSize%3D1024M%22%2C%22VS140COMNTOOLS%22%3A%22C%3A%5C%5CProgram%20Files%20(x86)%5C%5CMicrosoft%20Visual%20Studio%2014.0%5C%5CCommon7%5C%5CTools%5C%5C%22%2C%22windir%22%3A%22C%3A%5C%5CWINDOWS%22%2C%22windows_tracing_flags%22%3A%223%22%2C%22windows_tracing_logfile%22%3A%22C%3A%5C%5CBVTBin%5C%5CTests%5C%5Cinstallpackage%5C%5Ccsilogfile.log%22%2C%22WL_PORT%22%3A%227001%22%7D%2C%22appVersion%22%3A%221.12.6%22%2C%22atomHome%22%3A%22C%3A%5C%5CUsers%5C%5Cgcortes%5C%5C.atom%22%2C%22shellLoadTime%22%3A627%7D:1
SyntaxError: Unexpected token g in JSON at position 0
at Object.parse (native)
at file:///C:/Users/gcortes/.atom/packages/sync-settings/lib/sync-settings.coffee:178:24
at global.sendError (C:\Users\gcortes\.atom\packages\sync-settings\node_modules\github4\index.js:729:13)
at C:\Users\gcortes\.atom\packages\sync-settings\node_modules\github4\index.js:736:29
at callCallback (C:\Users\gcortes\.atom\packages\sync-settings\node_modules\github4\index.js:613:17)
at ClientRequest.<anonymous> (C:\Users\gcortes\.atom\packages\sync-settings\node_modules\github4\index.js:684:17)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:308:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at connectErrorNT (net.js:1016:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
-0:09.2.0 sync-settings:backup (atom-text-editor.editor.is-focused)
Hi, updating... I was able to solve the issue. In my case it was a proxy configuration in git.
I noticed that besides the related problem, I was also getting the following error when opening atom:
sync-settings: Error retrieving your settings. (getaddrinfo ENOTFOUND api.github.com api.github.com:443)
This error is related to proxy configuration. And I am behind a corporate proxy.
After some search, I found the simplest solution for me. I simply created this environment variable (I am at windows):
http_proxy=MY PROXY
@satoyoshiki , if you are behind a corporate proxy as well, that solution might help you too. To know what is your proxy, you can either ask someone in your company or follow this guide: http://superuser.com/questions/346372/how-do-i-know-what-proxy-server-im-using
This is likely a duplicate of #273.
[Enter steps to reproduce below:]
Atom Version: 1.12.5 Electron Version: 1.3.9 System: Mac OS X 10.12.1 Thrown From: sync-settings package, v0.7.2
Stack Trace
Uncaught SyntaxError: Unexpected token c in JSON at position 0
Commands
Config
Installed Packages