WARNING! Error adding current blueprint templates as alternative for JHipster templates - jhipster

I am trying to make a JHipster blueprint. Whenever I try to generate a project with it, I have warnings like
DEBUG! Found blueprint generator-jhipster-QuestionURL and server with namespace jhipster-QuestionURL:server
WARNING! Error adding current blueprint templates as alternative for JHipster templates.
Error: The Namespace jhipster-QuestionURL:server may not be correct. Please check your configuration and ensure your blueprint folder start with "generator-". Detail: Error: Error parsing namespace jhipster-QuestionURL:server
at module.exports.jhipsterTemplatePath (/home/dev/Documents/JavaProjects/JHipster/generator-jhipster-QuestionURL2/node_modules/generator-jhipster/generators/generator-base.js:187:13)
at new JHipsterBaseBlueprintGenerator (/home/dev/Documents/JavaProjects/JHipster/generator-jhipster-QuestionURL2/node_modules/generator-jhipster/generators/generator-base-blueprint.js:68:49)
at new JHipsterServerGenerator (/home/dev/Documents/JavaProjects/JHipster/generator-jhipster-QuestionURL2/node_modules/generator-jhipster/generators/server/index.js:75:5)
at new module.exports (/home/dev/Documents/JavaProjects/JHipster/generator-jhipster-QuestionURL2/generators/server/index.js:9:9)
at Environment.instantiate (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:801:23)
at Environment.create (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-environment/lib/environment.js:773:17)
at JHipsterServerGenerator.composeWith (/usr/local/lib/node_modules/generator-jhipster/node_modules/yeoman-generator/lib/index.js:1326:42)
at JHipsterServerGenerator._composeBlueprint (/usr/local/lib/node_modules/generator-jhipster/generators/generator-base-blueprint.js:516:43)
at async JHipsterServerGenerator.composeWithBlueprints (/usr/local/lib/node_modules/generator-jhipster/generators/generator-base-blueprint.js:413:34)
at async JHipsterServerGenerator._postConstruct (/usr/local/lib/node_modules/generator-jhipster/generators/server/index.js:96:7)
info Using blueprint generator-jhipster-QuestionURL for server subgenerator
showing up for each sub-generators I'm overriding. These warnings don't interrupt the questions asked by JHipster, but it prevents JHipster to generate the project in the end. When I finish answering all questions, I have this error message
ERROR! Template file src/main/docker/jib/entrypoint.sh was not found at /home/dev/Documents/JavaProjects/JHipster/generator-jhipster-QuestionURL2/generators/server/templates
Error: Template file src/main/docker/jib/entrypoint.sh was not found at /home/dev/Documents/JavaProjects/JHipster/generator-jhipster-QuestionURL2/generators/server/templates
at /home/dev/Documents/JavaProjects/JHipster/generator-jhipster-QuestionURL2/node_modules/generator-jhipster/generators/generator-base.js:2307:25
at Array.map (<anonymous>)
at /home/dev/Documents/JavaProjects/JHipster/generator-jhipster-QuestionURL2/node_modules/generator-jhipster/generators/generator-base.js:2237:42
at Array.map (<anonymous>)
at /home/dev/Documents/JavaProjects/JHipster/generator-jhipster-QuestionURL2/node_modules/generator-jhipster/generators/generator-base.js:2234:29
at Array.map (<anonymous>)
at module.exports.writeFilesToDisk (/home/dev/Documents/JavaProjects/JHipster/generator-jhipster-QuestionURL2/node_modules/generator-jhipster/generators/generator-base.js:2233:45)
at module.exports.writeFiles (/home/dev/Documents/JavaProjects/JHipster/generator-jhipster-QuestionURL2/node_modules/generator-jhipster/generators/server/files.js:1929:19)
at Object.<anonymous> (/home/dev/node_modules/yeoman-generator/lib/index.js:1097:23)
at /home/dev/node_modules/run-async/index.js:49:25
I am not familiar with namespaces so I can't pinpoint the problem. Does anyone know what is causing this and how to solve it?

Related

I am using ussd-builder to build a ussd app, I have installed ussd-builder in my local project

While running the project I get below error which i am stuck on how to solve it.
Failed to get route: TypeError: Cannot read property 'split' of undefined
at UssdMenu.resolveRoute (C:\Users\admin\Documents\USSD\tuma-ussd\node_modules\ussd-builder\lib\ussd-menu.js:135:47)
at C:\Users\admin\Documents\USSD\tuma-ussd\node_modules\ussd-builder\lib\ussd-menu.js:572:22
at processTicksAndRejections (internal/process/task_queues.js:95:5)
This is not stable where i can say it happen on the specific step, but at any on the step can happen or pass the step that it happen before and appear on another step.
Please guys help me on how to solve the error.

Cannot read property 'getQueryType' of undefined in NodeJS and graphql-tools

I'm new to NodeJS and started fixing some bugs. While starting node js app Cannot read property 'getQueryType' of undefined. The app is BFF for backend graphql services.
I'm not sure how to debug this.
Logs
🕸️ - GetMesh: Getting subschemas from source handlers
🕸️ - WorkspaceManager: Generating the schema
🕸️ - WorkspaceManager: The schema has been generated successfully
🕸️ - WorkspaceManager: Analyzing transforms
🕸️ - GetMesh: Schemas have been generated by the source handlers
🕸️ - GetMesh: Merging schemas using the defined merging strategy.
Stack Error : TypeError: Cannot read property 'getQueryType' of undefined
at getRootTypeMap (/app/node_modules/#graphql-tools/utils/index.js:685:30)
at Object.memoized [as getRootTypeMap] (/app/node_modules/#graphql-tools/utils/index.js:491:30)
at generateProxyingResolvers (/app/node_modules/#graphql-tools/wrap/index.js:15:31)
at Object.wrapSchema (/app/node_modules/#graphql-tools/wrap/index.js:80:31)
at BareMerger.handleSingleSource (/app/node_modules/#graphql-mesh/merger-bare/index.js:28:29)
at BareMerger.getUnifiedSchema (/app/node_modules/#graphql-mesh/merger-bare/index.js:69:25)
at getMesh (/app/node_modules/#graphql-mesh/runtime/index.js:114:46)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async MeshLoader.loadMesh (/app/runtime/mesh/mesh-loader.js:167:30)
at async initializeApp (/app/runtime/app.js:24:18).
Let me know, if more information is required to start with.

Free search failed in OpenSearch Dashboards(Kibana)

I got OpenSearch installed and from time to time i got free search failure.
When i try to search anything in a search tab i got an error.
i searched for the cause of the error and tried many different possible solutions.
Currently the "solution" is to delete the index and recreate it, but it's not ideal for anybody.
I wonder if there is anyone who knows the way to prevent this issue or fix it without deleting the index.
thank you.
Error: Bad Request
at Fetch._callee3$
(http://opensearch.com/1/bundles/core/core.entry.js:6:59862)
at tryCatch (http://opensearch.com/1/bundles/plugin/queryWorkbenchDashboards/queryWorkbenchDashboards.plugin.js:1:33827)
at Generator.invoke [as _invoke] (http://opensearch.com/1/bundles/plugin/queryWorkbenchDashboards/queryWorkbenchDashboards.plugin.js:1:37778)
at Generator.next (http://opensearch.com/1/bundles/plugin/queryWorkbenchDashboards/queryWorkbenchDashboards.plugin.js:1:34966)
at fetch_asyncGeneratorStep (http://opensearch.com/1/bundles/core/core.entry.js:6:52965)
at _next (http://opensearch.com/1/bundles/core/core.entry.js:6:53281)
Here is the logs from the opensearch node:
Opensearch logs

Duplicating debug configuration for multi Scheme is not working in React native-iOS

I've developed my project using react native, and now I am trying to implement multi-scheme for my dev, uat, and prod environments.
For the above, I've setup schemes and duplicated the release and debug configuration for each one of the scheme, and specified the different bundle ids, different app names, user defined variables. Now my situation is if I am running the scheme locally( as for run the debug configuration is set) then I'm falling into the below error:
Thread 6: "Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the na..., stack:\ngetEnforcing#4725:28\n#41349:50\nloadModuleImplementation#271:14\n#41308:40\nloadModuleImplementation#271:14\n#35877:18\nloadModuleImplementation#271:14\n#28987:16\nloadModuleImplementation#271:14\nguardedLoadModule#163:47\nglobal code#326655:4\n"
Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the native binary.', reason: 'Unhandled JS Exception: Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the na..., stack:
*** I've attached screenshot of my Development scheme setting where I've used release build config(Development) and debug build config(DevelopmentDebug)
Check this image
FYI:
If I choose release build configuration for Run, Test and Analyse and run the scheme then it is working fine, but in this case I can't use debugger for my development purpose.
Also, I don't have any issues with archiving or releasing the archive to testflight using CICD, as I've selected the release configuration for Archive and Profile under the scheme setting.
Please help me out, as this will make the development very difficult, as I don't have access to the debugger window.
Looking forward to get positive help.
Thanks
(: Please try to add some logs that would be very helpful

Error: Not Found at Gaxios.<anonymous> when trying to get history list from Gmail

I'm trying to process a push notification from Gmail by follow the instruction from this link. I modified some code to read from historyId instead of most recent message like recommended in the guide.
It's normally work find but sometime the problem occurred after received a push notification. The script failed to call Gmail API:
gmail-watch-fs yv1ke4cc0tk8 Error: Not Found
at Gaxios.<anonymous> (/srv/node_modules/gaxios/build/src/gaxios.js:73:27)
at Generator.next (<anonymous>)
at fulfilled (/srv/node_modules/gaxios/build/src/gaxios.js:16:58)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:229:7)
Here is the line that cause error:
const historyRes = await gmail.users.history.list({
userId: "me",
startHistoryId: historyId,
historyTypes: ["messageAdded"],
})
I found a Japanese site suggest to enable IAM API but it's already enabled in my case. Can anyone help me with this?
The problem is because I try to listen to many subscribed email address by only one Cloud Function instance. It is solved by generate more Cloud Function (one per each subscribed email).

Resources