"Failed to replace env in config: ${GITHUB_TOKEN}" - authentication

I have error to run yarn or other comand.
error An unexpected error occurred: "Failed to replace env in config: ${GITHUB_TOKEN}".
Error
when I enter the token everything works but when I reopen visual studio code I have to enter the token again.
Can you help thanks

Related

Unable to read local json file on live Vercel site using getServerSideProps?

Im having issues deploying a project on Vercel. On my local machine the app is working as expected. Yet on the live site I'm running into a 500 internal error message. The project uses MongoDB and Next-Auth. In the .env.local file I created a env variable for NEXTAUTH_URL = localhost/3000. In Vercel, I created a NEXTAUTH_URL = "project-site" env variable for production. At the moment there isn't any MongoDB env variable set up. The error message in the function logs reads out
[GET] /_next/data/A8gtiRNZmw7m2Db85BoGe/suggestions.json
15:40:24:81
2022-05-26T19:40:26.691Z e41995a4-dac5-4f4e-aa1c-fbbcd2787d91 ERROR [Error: ENOENT: no such file or directory, open '/var/task/public/data/data.json'] {
errno: -2,
syscall: 'open',
path: '/var/task/public/data/data.json',
page: '/suggestions'
}
RequestId: e41995a4-dac5-4f4e-aa1c-fbbcd2787d91 Error: Runtime exited with error: exit status 1
Runtime.ExitError
Any tips are greatly appreciated.

I had a problem with Appium and couldn't fix it

''' An unknown server-side error occurred while processing the
command. Original error: Error executing adbExec. Original error:
'Command 'D:\program\android-sdk\platform-tools\adb.exe -P 5037 -s
f8cb3e08 install -g
E:\appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk'
exited with code 1'; Stderr: 'adb: failed to install
E:\appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk:
Security exception: You need the
android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS permission to use
the PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS flag
java.lang.SecurityException: You need the
android.permission.INSTALL_GRANT_RUNTIME_PERMISSIONS permission to use
the PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS flag at
com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:596)
at
com.android.server.pm.PackageInstallerService.createSession(Package';
Code: '1' '''
I've turned on administrator mode
Usb debugging is also enabled
And other environments are already configured
This is my parameter
{
"platformName": "Android",
"platformVersion": "7.0",
"deviceName": "f8cb3e08",
"appPackage": "com.tencent.qqlive",
"appActivity": "ona.activity.SplashHomeActivity",
"noReset": "true",
"autoGrantPermissions": "true"
}
Use automation name as capability.
"automationName":"UiAutomator2"
You can use appium instead UiAutomator2 as default.

Unable to connect the Botium client with Google DialogFlow

Installed npm via mac terminal.
Installed botium client with npm command : npm install -g botium-cli
As directed in this tutorial :
Also have got allocated one DialogFlow instance and other details with project configuration as directed in the above linked tutorial.
Error I am getting while establishing the connection between botium client and DialogFlow :
Auth error:Error: error:0906D06C:PEM routines:PEM_read_bio:no start
line (node:25129) UnhandledPromiseRejectionWarning: Error: Cannot send
message to dialogflow container: { Error: 14 UNAVAILABLE: Getting
metadata from plugin failed with error: error:0906D06C:PEM
routines:PEM_read_bio:no start line
at Object.exports.createStatusError (/usr/local/lib/node_modules/botium-cli/node_modules/grpc/src/common.js:87:15)
at Object.onReceiveStatus (/usr/local/lib/node_modules/botium-cli/node_modules/grpc/src/client_interceptors.js:1188:28)
at InterceptingListener._callNext (/usr/local/lib/node_modules/botium-cli/node_modules/grpc/src/client_interceptors.js:564:42)
at InterceptingListener.onReceiveStatus (/usr/local/lib/node_modules/botium-cli/node_modules/grpc/src/client_interceptors.js:614:8)
at callback (/usr/local/lib/node_modules/botium-cli/node_modules/grpc/src/client_interceptors.js:841:24)
code: 14, metadata: Metadata { _internal_repr: {} }, details:
'Getting metadata from plugin failed with error: error:0906D06C:PEM
routines:PEM_read_bio:no start line' }
at /usr/local/lib/node_modules/botium-cli/node_modules/botium-connector-dialogflow/dist/botium-connector-dialogflow-cjs.js:222:14
(node:25129) UnhandledPromiseRejectionWarning: Unhandled promise
rejection. This error originated either by throwing inside of an async
function without a catch block, or by rejecting a promise which was
not handled with .catch(). (rejection id: 12) (node:25129) [DEP0018]
DeprecationWarning: Unhandled promise rejections are deprecated. In
the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.
If you need, there is also link to botium client
Can anyone help me here with the connection establishment and get going !
Same error was coming in my case when I was trying to connect botium to dialogue flow.
In my case DIALOGFLOW_PRIVATE_KEY was incorrect. Please check it, if it is starting with
------BEGIN PRIVATE KEY-----
and ends with
\n-----END PRIVATE KEY-----\n
This solved my issue:)

bazel server terminated abruptly (error code :14, error message: '',log file: 'c:\users\lee\_bazel_lee\zjiu63sl/server/jvm.out

Hi I used bazel in Windows 7
I try bazel build tensorflow/contrib/lite/toco:toco in cmd.exe
Then I got error message : server terminated abruptly (error code :14, error message: '',log file: 'c:\users\lee_bazel_lee\zjiu63sl/server/jvm.out
What can I do? Please help
enter image description here
Try in tensorflow-master folder, I got error message.enter image description here
Your current error message states that the command "patch" is not found. I gues your mingw installation has not installed this programm. See Apply a patch file in Windows using Mingw how to install it.

spell check : Tiny MCE editor

i am getting this error while i am enter some text and click on spellcheck icon in tinyMCE Editor..
Error response:
Warning: fsockopen(): php_network_getaddresses:
getaddrinfo failed: Temporary failure in name resolution in
/home/web/rattspar.se/scripts/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php
on line 86 Warning: fsockopen(): unable to connect to
ssl://www.google.com:443 (php_network_getaddresses: getaddrinfo failed:
Temporary failure in name resolution) in
/home/web/rattspar.se/scripts/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php
on line 86 Could not open SSL connection to google.{"id":null,"result":[],"error":null}
help me out/uday
Hi finally i got the answer. we have to Un-comment the line extension=php_curl.dll and extension=php_openssl.dll in php.ini and then restart the server.;-)