Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
400 views
in Technique[技术] by (71.8m points)

node.js - RE: Heroku's Cloudinary add-on; Uncaught (in promise) Unknown cloud_name

I've deployed a Node.js app to Heroku. The app's homepage loads and MongoDB is being hit as it should when the user logs in to their account, but I keeping getting "Uncaught (in promise) Unknown cloud_name" in the console and a blank screen. For a moment, I thought that this was due to the Heroku Cloudinary add-on's creation of a new Cloudinary account not aligning with my initial config var values; however, when I updated the config vars' values to point at this new account, I still get the same message. There were never any problems while running in development mode. I've been stuck on this for a couple of days and am trying to go-live (for select users) by tomorrow--please, help!!!

EDIT: Of the 53 times "cloud_name" is used in my app, not once is it mentioned in a promise. Also worth noting that I'm using NPM package @cloudinary/svelte to render my images.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

maybe this will help you https://dev.to/cpclark360/how-to-host-a-restful-node-js-server-with-mongodb-atlas-database-on-heroku-1opl , or you can create a .env file to link your database.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...