Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Slash Command produces invald response #1

Open
afewremarks opened this issue Apr 17, 2015 · 2 comments
Open

Using Slash Command produces invald response #1

afewremarks opened this issue Apr 17, 2015 · 2 comments

Comments

@afewremarks
Copy link

not sure if this is still working or not. But if you do a custom slash command and do a GET it posts successfully but app scrips has to return a response which slack bot after ever run posts:

<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon"href="//ssl.gstatic.com/docs/script/images/favicon.ico">
<title>Error</title>
<style type="text/css">
body {background-color: #fff; margin: 0; padding: 0;}.
errorMessage {font-family: Arial,sans-serif; font-size: 12pt; font-weight: bold; line-height: 150%; padding-top: 25px;}
</style>
</head>
<body>
<div>
<img   src="//ssl.gstatic.com/docs/script/images/logo.png">
</div>
<center>The script completed but did not   return anything.</center>
</body>
</html>
@jackerman09
Copy link

Did you ever figure out how to get rid of this response or at least stop it from showing to the user in slack? Thanks!

@JVenberg
Copy link

@jackerman09 Try returning something like this from your doGet function:
return ContentService.createTextOutput().setMimeType(ContentService.MimeType.JSON)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants