AWS Amplify, init failed - flutter

I'm trying to integrate AWS Amplify to my flutter project but having this issue while trying to run the amplify init command
init failed
TypeError [ERR_INVALID_ARG_TYPE]: The 'request' argument must be string. Received type undefined
at Object.onSuccess (/Users/osx/.nvm/versions/node/v14.2.0/lib/node_modules/#aws-amplify/cli/src/init-steps/s9-onSuccess.ts:26:26)
at Object.exports.run (/Users/osx/.nvm/versions/node/v14.2.0/lib/node_modules/#aws-amplify/cli/src/commands/init.ts:24:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Object.executeAmplifyCommand (/Users/osx/.nvm/versions/node/v14.2.0/lib/node_modules/#aws-amplify/cli/src/index.ts:181:5)
at executePluginModuleCommand (/Users/osx/.nvm/versions/node/v14.2.0/lib/node_modules/#aws-amplify/cli/src/execution-manager.ts:161:3)
at Object.executeCommand (/Users/osx/.nvm/versions/node/v14.2.0/lib/node_modules/#aws-amplify/cli/src/execution-manager.ts:26:5)

Related

I get an error when trying to deploy my app to Vercel. What does it mean by "Invalid/Missing environment variable: "MONGODB_URI""?

Whenever I try to deploy my app to Vercel it fails with an error
`
Error: Invalid/Missing environment variable: "MONGODB_URI"
at 7000 (/vercel/path0/.next/server/chunks/748.js:136:11)
at __webpack_require__ (/vercel/path0/.next/server/webpack-runtime.js:25:42)
at 4186 (/vercel/path0/.next/server/pages/index.js:20:70)
at __webpack_require__ (/vercel/path0/.next/server/webpack-runtime.js:25:42)
at __webpack_exec__ (/vercel/path0/.next/server/pages/index.js:470:39)
at /vercel/path0/.next/server/pages/index.js:471:77
at __webpack_require__.X (/vercel/path0/.next/server/webpack-runtime.js:108:21)
at /vercel/path0/.next/server/pages/index.js:471:47
at Object.<anonymous> (/vercel/path0/.next/server/pages/index.js:474:3)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
and
> Build error occurred
Error: Failed to collect page data for /
at /vercel/path0/node_modules/next/dist/build/utils.js:959:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
type: 'Error'
}
I am new at using MongoDB with Next.js and don't understand what I am missing. Here's my env.local minus my username and password
MONGODB_URI=mongodb+srv://<username>:<password>#cluster0.z74c5nt.mongodb.net/?retryWrites=true&w=majority
`
I have tried changing the MONGODB_URI but I nothing else works. I've googled and looked for an answer and can't find anything else related to the same issue.

What path am I missing in vscode web extension?

I am trying to add a basic vscode web extension by hosting it on GitHub. I have hosted the code here, and am trying to run the following command to install in vscode.dev.
> Developer: Install Web Extension...
https://raw.githubusercontent.com/AdamRaichu/vscode-minecraft-lang/5da927a0f42934119198182ec5141f2c676546d2/
However when I do, I get the following error.
[2022-10-27 11:48:07.683] [window] [info] Installing extension: adamraichu.minecraft-lang
[2022-10-27 11:48:07.954] [window] [info] Request to 'https://raw.githubusercontent.com/AdamRaichu/vscode-minecraft-lang/5da927a0f42934119198182ec5141f2c676546d2/package.nls.json' failed with status code 404
[2022-10-27 11:48:07.960] [window] [error] Error while installing the extension: adamraichu.minecraft-lang
[2022-10-27 11:48:07.965] [window] [error] The "path" argument must be of type string. Received type undefined: Error: The "path" argument must be of type string. Received type undefined
at h (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:78:11422)
at Object.join (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:78:18753)
at h.joinPath (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:83:9376)
at C.joinPath (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:84:6477)
at K.toWebExtension (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:3241:118766)
at async K.addExtension (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:3241:114719)
at async u.doRun (https://main.vscode-cdn.net/stable/d045a5eda657f4d7b676dedbfa7aab8207f8a075/out/vs/workbench/workbench.web.main.js:3242:7677)
What path am I missing?
Note that trying to open any of these links from the log gets an error.
<Error>
<Code>BlobNotFound</Code>
<Message>The specified blob does not exist. RequestId:50ecf237-701e-00a5-121b-eadf11000000 Time:2022-10-27T15:50:04.6433646Z</Message>
</Error>
I fixed this problem by adding browser to my package.json, with a path to a typescript file. This in turn showed me other missing things, but this fixed my problem.

ERROR TypeError: Object(...) is not a function at WebIntent.get [as ACTION_VIEW]

I am trying to integrate Google pay into my app using web intent plugin. After I completed the install I got the following error:
ERROR TypeError: Object(...) is not a function at WebIntent.get [as
ACTION_VIEW]
Click here for my error

Not able to view PDF on mobile using pdf js

I can view a PDF in the browser using ionic serve, but I am not able to view the PDF on a device. I am testing on Android.
This is the error I'm getting:
polyfills.js:3 Fetch API cannot load file:///android_asset/www/assets/imgs/11.pdf. URL scheme “file” is not supported.
(anonymous) # polyfills.js:3
vendor.js:1 ERROR Error: Uncaught (in promise): TypeError: Failed to fetch
TypeError: Failed to fetch
at polyfills.js:3
at Generator._invoke (0.js:1)
at Generator.t.(anonymous function) [as next]
(file:///android_asset/www/build/0.js:1:278295)
vendor.js:1 ERROR Error: Uncaught (in promise): DataCloneError: Failed to execute ‘postMessage’ on ‘Worker’: TypeError: Failed to fetch could not be cloned.
Error: Failed to execute ‘postMessage’ on ‘Worker’: TypeError: Failed to fetch could not be cloned.
at o.postMessage (0.js:1)
Thanks in advance.

Cannot deploy nodejs application with error "NoMethodError: undefined method `owner' for Chef::Resource::DeployRevision"

I cannot deploy a nodejs app with application & application_nodejs cookbook.
My environment :
Chef 11.12.2
Application cookbook : 4.1.4
Application_nodejs cookbook : 2.0.1
Ubuntu : 12.04 LTS
Full error :
"[2014-06-02T10:51:51+00:00] INFO: Running queued delayed notifications before re-raising exception
[2014-06-02T10:51:51+00:00] ERROR: Running exception handlers
[2014-06-02T10:51:51+00:00] ERROR: Exception handlers complete
[2014-06-02T10:51:51+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-06-02T10:51:51+00:00] ERROR: deploy_revision(xxxx) had an error: NoMethodError: undefined method `owner' for Chef::Resource::DeployRevision
[2014-06-02T10:51:51+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)"
Any idea?
It seems like you maybe making a mistake in passing in an empty value. Check that "owner" is actually set with the right value and not a nil.