heroku

Unknown auth message code 1397113172 when connect to Heroku postgres

六眼飞鱼酱① 提交于 2021-02-08 06:17:35
问题 Thanks reading my issue. Currently, I am using postgres (hobby-dev) on Heroku and facing this issue every time that I connect to the database. error: Uncaught (in promise) Error: Unknown auth message code 1397113172 throw new Error(`Unknown auth message code ${code}`); ^ at Connection.handleAuth (connection.ts:197:15) at Connection.startup (connection.ts:155:16) at async Pool._createConnection (pool.ts:32:5) at async pool.ts:61:7 at async Promise.all (index 0) at async Pool._startup (pool.ts

Will setTimeout use Heroku free dyno hours?

自作多情 提交于 2021-02-08 04:50:04
问题 I have a bot with a command that allows the user to input a message separated with a dash and then a specified time, this is then passed to the bot and the bot reminds the user with the message after the specified amount of time has passed. function reminder(msg) { const message = msg.content.replace(this.prefix+this.name+" ",""); const params = message.split("-"); setTimeout(() => { msg.channel.sendMessage(params[0]); }, (parseInt(params[1])*1000)); } I intend to run this bot on Heroku, but

Will setTimeout use Heroku free dyno hours?

隐身守侯 提交于 2021-02-08 04:48:08
问题 I have a bot with a command that allows the user to input a message separated with a dash and then a specified time, this is then passed to the bot and the bot reminds the user with the message after the specified amount of time has passed. function reminder(msg) { const message = msg.content.replace(this.prefix+this.name+" ",""); const params = message.split("-"); setTimeout(() => { msg.channel.sendMessage(params[0]); }, (parseInt(params[1])*1000)); } I intend to run this bot on Heroku, but

Will setTimeout use Heroku free dyno hours?

[亡魂溺海] 提交于 2021-02-08 04:47:38
问题 I have a bot with a command that allows the user to input a message separated with a dash and then a specified time, this is then passed to the bot and the bot reminds the user with the message after the specified amount of time has passed. function reminder(msg) { const message = msg.content.replace(this.prefix+this.name+" ",""); const params = message.split("-"); setTimeout(() => { msg.channel.sendMessage(params[0]); }, (parseInt(params[1])*1000)); } I intend to run this bot on Heroku, but

SMTP Authentication Error with Django on Heroku

不问归期 提交于 2021-02-08 02:00:09
问题 I am trying to send emails from my django app using the the gmail smtp servers. The emails are being sent when I run the application on my local server. But I'm getting an SMTP Authentication Error while using it on heroku. Traceback - link settings.py - # Email configuration. EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_HOST_USER = '***************@gmail.com' EMAIL_HOST_PASSWORD = '************' EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = '******************@gmail.com' EMAIL_BACKEND =

SMTP Authentication Error with Django on Heroku

落花浮王杯 提交于 2021-02-08 01:59:59
问题 I am trying to send emails from my django app using the the gmail smtp servers. The emails are being sent when I run the application on my local server. But I'm getting an SMTP Authentication Error while using it on heroku. Traceback - link settings.py - # Email configuration. EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_HOST_USER = '***************@gmail.com' EMAIL_HOST_PASSWORD = '************' EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = '******************@gmail.com' EMAIL_BACKEND =

MongoDB connection to MongoLab timing out in NodeJS on Heroku

霸气de小男生 提交于 2021-02-07 19:50:44
问题 At first everything works, and I can successfully store data by posting to the /upload route. But after 120 seconds of inactivity, the timeout event fires, and future attempts to store data fail. However the callback isn't called, so there is no "Unable to insert..." message at the log. var express = require('express'); var bodyParser = require('body-parser'); var winston = require('winston'); var config = require('./config'); var MongoClient = require('mongodb').MongoClient; var app =

MongoDB connection to MongoLab timing out in NodeJS on Heroku

独自空忆成欢 提交于 2021-02-07 19:47:29
问题 At first everything works, and I can successfully store data by posting to the /upload route. But after 120 seconds of inactivity, the timeout event fires, and future attempts to store data fail. However the callback isn't called, so there is no "Unable to insert..." message at the log. var express = require('express'); var bodyParser = require('body-parser'); var winston = require('winston'); var config = require('./config'); var MongoClient = require('mongodb').MongoClient; var app =

How to Specify One Worker on a Queue for Delayed Jobs

对着背影说爱祢 提交于 2021-02-07 19:29:26
问题 How can I specify one worker for a specific queue when using delayed jobs? I know I can run this command: # Use the --pool option to specify a worker pool. You can use this option # multiple times to start different numbers of workers for different queues. # The following command will start 1 worker for the tracking queue, # 2 workers for the mailers and tasks queues, and 2 workers for any jobs: RAILS_ENV=production script/delayed_job --pool=tracking --pool=mailers,tasks:2 --pool=*:2 start

Action Cable issue: messages occasionally not delivering or occasionally sent to the wrong channel

≡放荡痞女 提交于 2021-02-07 19:05:41
问题 I'm using Action Cable for a chat application with many different channels. Everything is set up with Redis and Postgresql (to save messages) on Heroku and 95% of the time works great in development and production. Occasionally though, messages sent do not show up. The message is sent, it is saved in the database, but then it never shows up on the front end unless I refresh. Or, the message shows up in another channel for which it is not directed. Again, everything is properly saved in the