How can I retrieve Heroku application id? - heroku

I am being asked for heroku app id (the app123#heroku.com) by 3rd party support. I am quite sure there was some way to do get it, but I don't see it know. It's not featured in heroku info even in the more verbose --json mode.
How can I retrieve it?

If someone needs a long App ID (01234567-89ab-cdef-0123-456789abcdef):
curl -n https://api.heroku.com/apps/$APP_NAME \
-H "Accept: application/vnd.heroku+json; version=3"
App ID will be in the response object under "id"
Source:
https://devcenter.heroku.com/articles/platform-api-reference#app-info

I had the same issue, and was informed via my support ticket that the only way to get the heroku app ID (that SendGrid uses) is to ask for it via Heroku support. Here's what Heroku support says:
You cannot retrieve that value yourself. This is a value that SendGrid support requires that only Heroku support can supply to them.
Lodge a ticket here: https://help.heroku.com/?t=true
UPDATE
Turns out you can access it by running
heroku config:get SENDGRID_USERNAME
app171441466#heroku.com

Go to your app on the Heroku dashboards, open the dev tools, check for requests coming from particleboard.heroku.com and there you have the ID, after /apps/...

Related

Heroku says my custom domain is already in use, despite having already released it

When I attempt to add a new custom domain to my heroku app, I receive the following error
Domain "..." could not be created:
... is currently in use by another app.
See this image:
Example of error in the add new domain sidebar
Details so far:
I use a free dyno for my app
I own the domain and do not use it in any other heroku app (in fact, it's unused for any website)
I used this form, Heroku Domain Release, to release the domain from any existing usage on Heroku. This was successful and seems to imply it was in use by another app at some point.
I ran that form again, and received the message that it was no longer in use by any app.
It's been at least an hour since I tried using the release form and I still receive the same error message when trying to add my domain.
I cannot contact Heroku support directly since I use a free dyno.
Any help greatly appreciated!

Is the a way to get the logs from Mailgun to understand why it's not submitting on my Heroku website?

I'am working on AWS Cloud9 developing a website. I have transferred my Ruby on Rails App from Cloud9 to Heroku servers. I received a Heroku domain and choose to add on the Mailgun Service. I have signed up to Mailgun and I've tried to test the service. Everytime I click the submit button on my website, I receive the message, "We're sorry, but something went wrong.
If you are the application owner check the logs for more information."
This is problem starting on the Heroku side? or the Mailgun side? I've used the recommended ports.

Retrieve Heroku logs programmatically

I want to be able to access the Heroku-provided logs for my Node.js app online. Is there a way to add this into my app, or to use some REST API with AJAX for this? If so, how?
You can use the Heroku Platform API to start a log session: https://devcenter.heroku.com/articles/platform-api-reference#log-session
There's a Node.js wrapper for the Heroku API here: https://github.com/heroku/node-heroku-client

Smoochbot not replying

I tried setting up smooch-bot via the Heroku example. I followed the directions and opened the heroku app and chatted with the bot, but I don't receive any replies. The messages I type are being forwarded to smooch because I am receiving email notifications from Smooch... but there are no replies from smooch-bot in the chat window.
I am not a programmer so I've tried to follow the directions. I am deploying the app via a Dropbox connection. Is it normal that the Heroku folder in my Dropbox is empty? I tried uploading script.js into Dropbox > Apps > Heroku and Dropbox > Apps > Heroku > mybot, but I'm still not getting replies.
I am not sure where I went wrong. Could somebody help me point in the right direction?
If you're using Dropbox with Heroku, its not enough to simply edit your script file. You have to explicitly deploy your Dropbox changes via the Heroku dashboard, like this:
Also, to debug any issues with your bot script specifically, I've documented some troubleshooting steps here:
https://github.com/smooch/smooch-bot-example#troubleshooting-your-bot
To summarize, you need to install the heroku toolbelt, log in on the command line and view your app's error logs with heroku logs -a your-app.

Heroku: Apigee for Twitter add-on

I am trying to use apigee for Twitter add-on in Heroku, but I get this message
That add-on is only available to selected users
What I have to do?
Thanks
PS: Is this add-on working with Twitter API v1.1?
Tim from Apigee here. I can confirm that our Apigee for Twitter (and Apigee for Facebook) add-ons have been deprecated. Heroku apps that have already provisioned the add-ons can keep using them but we are not accepting any new users at this time.
That said, you don’t necessarily need the add-ons; you may be able to get the same functionalities you are looking for through the new Apigee platform. You can sign up and use it for free and very quickly have it proxy the Twitter API by following our quickstarts.
If you have any more questions, please feel free to post them on SO and I’ll make sure someone gives you a prompt answer.

Resources