Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
JackofSpades707
@JackofSpades707
image.png
A rainbow surfing cat
@Timed-kitty-cat
@MadLittleMods emails
1 reply
DiscordChatbot
@DiscordChatbot
Hello, I'm not a bot at this moment.
But I'm not sure why I get error like this:
HTTP/1.1 401 Unauthorized
Date: Thu, 10 Jun 2021 04:33:35 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 24
Connection: keep-alive
Server: nginx
Vary: X-HTTP-Method-Override, Origin
Cache-Control: no-cache
Access-Control-Expose-Headers: X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset
ETag: W/"18-XPDV80vbMk4yY1/PADG4jYM4rSI"

{"error":"Unauthorized"}
When I make POST request.
curl -X POST -i -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer <token>" "https://api.gitter.im/v1/rooms/:roomId/chatMessages" -d '{"text":"You should also check https://irc.gitter.im/"}'
(BTW am I at the right place, or just spamming an unrelated room?)
Eric Eastwood
@MadLittleMods
@DiscordChatbot This room works, we can also move to https://gitter.im/gitter/api
DiscordChatbot
@DiscordChatbot

@DiscordChatbot That works, we can also move to https://gitter.im/gitter/api

Wierd, yeah I tried it from terminal, it works. (But I doing the curl request from require('child_process').exec )

Eric Eastwood
@MadLittleMods

@DiscordChatbot To be clear, are you replacing <token> and :roomId in your curl request?

The <token> should be replaced by your personal access token at https://developer.gitter.im/apps

DiscordChatbot
@DiscordChatbot
Yes.
(I just removed for brevity)
Eric Eastwood
@MadLittleMods

@DiscordChatbot For reference, I copy pasted your curl command, replaced the <token> and :roomId and it worked fine

Make sure you are replacing the whole token correctly, it should look like this: -H "Authorization: Bearer 52b42a52ed5ab0b3bf051b93" (not a real token)

DiscordChatbot
@DiscordChatbot
Thanks, but that's exactly what I've done. (here is relevent code : )
bot.on("message", message => {
    if(message.author.bot) return;
    let mes = message.content.toString();
    console.log(mes);
    require('child_process').exec(`curl -X POST -i -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer     bed33fb64743859b4a0d0ea1ccc4d41ae884d1e9" "https://api.gitter.im/v1/rooms/603b3c246da037398463dbc4/chatMessages" -d '{"text":${JSON.stringify(mes)}}'`, (a, b, c)=>{console.log(b); console.log("done");});

});
Eric Eastwood
@MadLittleMods
@DiscordChatbot I've just cleared your access token since you just leaked it. You will need to generate another one from https://developer.gitter.im/apps
DiscordChatbot
@DiscordChatbot
Sorry for that.
5 replies
Eric Eastwood
@MadLittleMods

@DiscordChatbot One problem I see is all of the spaces between Bearer and your access token (should be 1 space). I've just tested and that matters but I get a 400 Bad Request

-H "Authorization: Bearer bed33fb64743859b4a0d0ea1ccc4d41ae884d1e9"

DiscordChatbot
@DiscordChatbot
It works now, thanks! \'o'/
Kiran Telukunta
@telukir_gitlab
I know that this gitterHQ/webapp#1752 exists for linking accounts. But after matrix integration what is the best way of merging accounts and also use matrix? is there a solution for merging of accounts?
1 reply
klepp0906
@klepp0906
does an option exist to disable "start with windows" from within the desktop app or do we need to use the task manager?
2 replies
Paul Broadwith
@pauby
I'm trying to ban a user over in our Gitter rooms but despite me doing it, and despite it being shown under activity, the user is still able to post in the rooms. I used the /ban @username command. Is there a limitation to this or a way around it than the user is exploiting?
8 replies
A rainbow surfing cat
@Timed-kitty-cat
@MadLittleMods How do I download Gitter Desktop on a Chromebook?
4 replies
voidtrance
@voidtrance
Hi, I noticed that all of a sudden I am part of a two person conversation that I did not start. However, that conversation does not have a "Leave Room" option, just "Hide Room". How can I get out of it?
5 replies
simanacci
@simanacci
Is their a command/shortcut to set the desktop client to full screen? i.e F11, Ctrl+Something
2 replies
M Rule
@michaelerule
I'd like to lower the volume of the message alert sound for the Gitter desktop app on linux; Is this possible? (a messy hack would be acceptable)
13 replies
Tharindu Weerasinghe
@tharindu-nw
How do I stop getting email notifications?
1 reply
DiscordChatbot
@DiscordChatbot
What is the lastAccessTime of someone in API call of all rooms?
Is that mine accessTime or the other user?
DiscordChatbot
@DiscordChatbot
Never mind, it's mine.
kb1000
@kb1000:matrix.org
[m]
why does the Gitter Badger GH bot not remove its fork after the PR got merged?
1 reply
Alexis Cook
@alexisbcook
is it possible to make a community where: anyone can join, but then the messages within rooms (and the list of users) are only visible to users who have joined the community?
1 reply
blast_hardcheese
@blast_hardcheese:matrix.org
[m]
The matrix integration is excellent, fwiw. Really appreciate that.
Unfortunately, I seem to be locked out of the gitter.im homepage, 429 too many redirects after I clicked the globe icon while in a community.
1 reply
blast_hardcheese
@blast_hardcheese:matrix.org
[m]
Will it be possible to "Publish this room to the public in matrix.org's room directory" gitter.im bridged rooms in the future?
3 replies
A rainbow surfing cat
@Timed-kitty-cat
See my new profile picture?
2 replies
bbblover
@bbblover
The gitter mobile app cannot press \n by pressing return key
1 reply
Btw, I wish gitter support edit/delete message
1 reply
bbblover
@bbblover
Apparently 5 years ago smone ald proposed to make the return key aa newline. However gitter mobile app just didn't change it. Well, I guess it's hopeless now. I was wishing I can type code have fun in group.
Ryanv2
@hackercat:matrix.org
[m]
were there any issues with Gitter<>Matrix integration during 9-10 July? Some messages did not arrive to Matrix channel but are on Gitter
1 reply
Ryanv2
@hackercat:matrix.org
[m]
last 2 messages in https://gitter.im/nektos/act did not appear in matrix channel
Guerro9
@Guerro9
Hello everyone! New too gitter and termux but all of this is very interesting
2 replies
Jeffrey Warren
@jywarren
Hi all, I'm unable to remove a user who has previously violated our code of conduct, "Ha-Pixel67", in the https://gitter.im/publiclab/publiclab room. I'm getting a "success" response from the DELETE request in the dev console when i audit the request
5 replies
Timed-kitty-cat @Timed-kitty-cat is watching TV. He will return in a moment.
Timed-kitty-cat @Timed-kitty-cat has returned! He got bored because the show was about sports and he likes gaming, not sports!
Eduardo
@carliedu
Is there a decent search tool in Gitter?
3 replies
Eduardo
@carliedu
I'm a beginner in ReactPHP technology, a big paradigm breaker (synchronous/asynchronous) for me, who have been programming with PHP for over a decade. As Gitter is the only way to learn more about the technology, I was able to move forward, but I have to say, in a very hectic way. I did find answers on Gitter, but they were by chance. Now I'm questioning the group to launch a forum, for new users (ReactPHP has been gaining adherents). The tendency is to ask the same questions asked in the past. Finding them and their answers on Gitter is a matter of luck. And new developments are emerging with the ReactPHP technology, such as https://framework-x.io/ based on it. Gitter doesn't seem like a solution for new users.
1 reply
AdamChen
@doremichen
hi
1 reply