Cannot set property 'locale' of undefined, not working in replit but at my pc - node.js

I get this error on replit but on my pc the bot works well, but i want to host my bot free 24/7.
This is the error
This is my i18n configure in my code
If there is an other website where i can paste my code and host it with express it would also help me.
thx

Repl.it is just not reading the sub-prototype 'locale' from your targetObject you should just try switching hosts :)

Check out Heroku. It's free and you can get 550-1,000 hours of runtime for 0$. Probably the best feature of this hoster is the GitHub integration, so you don't have to upload your bot's code manually, but can connect your GitHub to a project and choose from which branch you want the code.
You can also set it to automatically update your project on Heroku when you push to the selected branch.
Important note: If you host your bot on Heroku, for example, config.json cannot be used. Variables like the bot-token etc. must be set on heroku. The best thing to do is to watch this tutorial, everything is explained there

Related

Heroku Routes to backend not working in development mode

I made a simple todo application with React,Node and Mongodb. The application works fine while run on the dev server. When I deploy it, however, it appears as though the app can't hit the todo API routes. Any help would be appreciated.
this is my github repo link(https://github.com/Ashish5911/notebook-backend/)
Would suggest you to identify the presence of errors in Heroku log for further analysis.
You can open the Heroku log by pressing the View logs button as seen in the below pop-up menu:
.env is in your .gitignore file, which is what is not pushed to Heroku. If you remove .env from your .gitignore, that may help. I faced the same issue before.

deploying nodejs and mongoDB to azure

I have a nodejs/express application and an atlas mongoDB set up. I can get the data from the database to my app if it is running on local host. When I try and deploy the app as a web app through Azure, it does not work; I click the button to get/display the data but nothing happens. What is causing this issue and how do I fix it?
I figured out what was wrong. My repository did not include a web.config file at all. Having never worked with web applications or Node before, I did not know this was needed. Once I added the file and put the proper path in, the code began working as intended. I can update this post with actual code if someone wants it.

DocuSign quickstart example nothing happens

I have followed the instructions to implement Docusign quickstart... I have added quickstart to my server, and then with the composer I have installed the example scripts too.
However, after all settings correctly made (at least that is what I think), when I try to load it, nothing happens. Literally nothing: no error, but nothing loaded either.
http://dealstream.innovativesites.eu/dealstream-php/src/EG001EmbeddedSigning.php
Please have a look and try to give me some advise.
Thanks,
Attila.
The Quickstart is designed to load a home page that let you log in and lists all the code examples.
I know PHP developers typically would just try to run a specific PHP file, but that's not how we designed the quickstart.
You need to run http://localhost:8080/public assuming that you set 8080 as the port.
You can find instructions for XAMPP web server here -
https://github.com/docusign/code-examples-php

Azure Service Editor config changes are not applicated

I have a problem with my QnA Bot App. I made some changes to basic responses (No answer found, Hello and Goodbye) in Azure Service Editor. I have also changed a default HTML webpage. Changes made in a HTML website were made instantly, but the config files with new welcome responses were not.
I am sure that I once watched a tutorial that provided information that after you change some stuff in configs files you need to commit them using Kudo Console. I tried restarting the app but it did not work.
I am beginner. Does anyone remember what is the command?
I tried searching through my whole browser history but I still cannot find it.
I used command deploy and it worked.

Bluemix Node.js app not showing new code

I've built a Node.js app locally that works fine but when I went to test it on Bluemix, it didn't show the app consistently. What I mean is this. I did my cf push. It reported it went up ok. I went to my domain and I saw the original, default BM Node.js 'hello' page. I shift reloaded a few times and sometimes I saw my content. Sometimes I saw my HTML and not the CSS. But more often then not I saw the initial BM hello page stuff. It's like there is some serious caching going on the BM side but I do not know how to clear it.
As I said, cf push is reporting everything ok as far as I can see. The File browser in the dashboard is showing old files as well.
Well, this was stupid, but I honestly see this as a mistake others can make too so I'll fess up with what I did. My app had "recognition" in the name, and when I created the app I misspelled it as "recognation". So when I did my push it ended up making another app, and I had multiple apps with the same route which apparently confused Bluemix, understandably so I think.
So I guess the take away is - ensure you get the darn app name correct when creating and doing your push. :)

Resources