brokkoli_origin has quit [Ping timeout: 265 seconds]
brokkoli_originl has joined #ruby
konsolebox has joined #ruby
Linux_Kerio has joined #ruby
Vonter has joined #ruby
CRISPR has joined #ruby
snoojin has quit [Quit: Connection closed for inactivity]
CRISPR has quit [Ping timeout: 260 seconds]
konsolebox has quit [Ping timeout: 276 seconds]
CRISPR has joined #ruby
CRISPR has quit [Quit: WeeChat 3.8]
Vonter has quit [Quit: WeeChat 4.4.4]
konsolebox has joined #ruby
sam113101 has joined #ruby
hwpplayer1 has joined #ruby
hwpplayer1 has quit [Remote host closed the connection]
hwpplayer1 has joined #ruby
mange has quit [Remote host closed the connection]
konsolebox has quit [Ping timeout: 246 seconds]
hwpplayer1 has quit [Remote host closed the connection]
konsolebox has joined #ruby
weaksauce has quit [Ping timeout: 244 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
grenierm has joined #ruby
grenierm has quit [Ping timeout: 240 seconds]
grenierm has joined #ruby
szkl has joined #ruby
jmcantrell has quit [Ping timeout: 244 seconds]
jmcantrell_ is now known as jmcantrell
JulioPapel has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
ua_ has quit [Read error: Connection reset by peer]
ua_ has joined #ruby
royo25 has joined #ruby
JulioPapel has quit [Remote host closed the connection]
JulioPapel has joined #ruby
JulioPapel has quit [Read error: Connection reset by peer]
JulioPapel has joined #ruby
konsolebox has joined #ruby
Guest53 has joined #ruby
Guest53 has quit [Client Quit]
JulioPapel has quit [Remote host closed the connection]
JulioPapel has joined #ruby
jasfloss has joined #ruby
grenierm has quit [Quit: Client closed]
donofrio has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
JulioPapel has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
JulioPapel has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
donofrio has joined #ruby
JulioPapel has quit [Remote host closed the connection]
donofrio has quit [Ping timeout: 252 seconds]
royo25 has quit [Quit: Goodbye cruel world]
Linux_Kerio has quit [Ping timeout: 252 seconds]
cappy has joined #ruby
MsInput has quit [Quit: WeeChat 4.4.4]
MsInput has joined #ruby
user71 has joined #ruby
hwpplayer1 has joined #ruby
konsolebox has quit [Ping timeout: 250 seconds]
donofrio has joined #ruby
user71 has quit [Ping timeout: 252 seconds]
cappy has quit [Quit: Leaving]
TomyWork has joined #ruby
user71 has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
cpach has joined #ruby
Linux_Kerio has joined #ruby
<cpach>
Hi folks. Scratching my head rn. I’m trying to create DNS records using Ruby and the Google Cloud API. But for some reason, I cannot fetch the relevant zone. I just get Forbidden (Google::cloud::PermissionDeniedError)
<cpach>
If anyone has any ideas how to troubleshoot this then I’m all ears
<cpach>
I have used the same secrets file, same project ID, same zone name in a Python script and there it works fine.
<cpach>
so the IAM rules are fine
dhruvasagar has quit [Ping timeout: 272 seconds]
user71 has quit [Quit: Leaving]
dhruvasagar has joined #ruby
weaksauce has joined #ruby
donofrio has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
user71 has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby
donofrio has quit [Ping timeout: 265 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
<havenwood>
cpach: Glancing at the gem, the relevant code isn't very helpful since it's just raising on `304, 400, 402...500` error codes. Presumably 403 here?
<havenwood>
cpach: Can you look at the raw response to see if it has more that's not being passed on?
dhruvasagar has joined #ruby
<havenwood>
There's not much code-wise to go off of I'm afraid. I'd personally want to look at the HTTP requests from each to diff.
<havenwood>
Maybe try a mitmproxy and see if it shows where the Ruby payload varies?
hwpplayer1 has quit [Quit: see you later]
dhruvasagar has quit [Ping timeout: 248 seconds]
__jmcantrell__ has joined #ruby
jmcantrell is now known as Guest8945
Guest8945 has quit [Killed (copper.libera.chat (Nickname regained by services))]
__jmcantrell__ is now known as jmcantrell
jmcantrell_ has joined #ruby
donofrio has joined #ruby
dhruvasagar has joined #ruby
___nick___ has joined #ruby
dhruvasagar has quit [Ping timeout: 265 seconds]
donofrio has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
<cpach>
yep, it’s 403.
dhruvasagar has joined #ruby
<cpach>
mitm might be useful.
<cpach>
very strange, this.
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
___nick___ has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
<cpach>
I wonder if there is some IAM permission missing. (But that the Python library I mentioned above calls the API in some other way so that this specific permission is not required.)
dhruvasagar has joined #ruby
<cpach>
it could be this one: `dns.managedZones.get`
<cpach>
yep, that was it.
<cpach>
apparently the Python library for Google Cloud DNS doesn’t require that permission. but the Ruby library did.
<o0x1eef>
\o/
<cpach>
woop woop
dhruvasagar has quit [Ping timeout: 276 seconds]
<cpach>
In Python, zone = client.zone("some-zone") worked fine without this permission. so I guess that the Pythonic .zone() method was implemented in such a way that it didn’t try to "get" the zone, it just defined the zone to be the string value that I passed or something like that?
brokkoli_originl has quit [Remote host closed the connection]
brokkoli_originl has joined #ruby
dhruvasagar has joined #ruby
brokkoli_originl has quit [Remote host closed the connection]
<o0x1eef>
Use the source, Luke. :P But yeah I guess sth like that.
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
finsternis has quit [Read error: Connection reset by peer]
brokkoli_originl has joined #ruby
Linux_Kerio has quit [Ping timeout: 244 seconds]
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
jmcantrell has quit [Ping timeout: 244 seconds]
jmcantrell_ is now known as jmcantrell
dhruvasagar has quit [Ping timeout: 252 seconds]
brokkoli_originl is now known as brokkoli_origin
dhruvasagar has joined #ruby
donofrio has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
donofrio has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
<kjetilho>
how can I make Psych dump hashes sorted, so the result is a stable YAML file (no random reordering between runs)?
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
<Rounin>
kjetilho: I don't know how reproducible it is, but I just tried {"c": "a", "a": "a"}.sort.to_h, and a hash with sorted keys showed up
<kjetilho>
hmm!
<Rounin>
The .sort turned it into an array of arrays, so Object.toEntries().toSorted(), basically, and .to_h seems to be Object.fromEntries()... To say it in JavaScript
<kjetilho>
so I can just use .to_h myself rather than monkeypatch
cappy has joined #ruby
<kjetilho>
sort.to_h that is
<Rounin>
So it would seem, at least :D
<kjetilho>
but this only works for top level hash keys
<Rounin>
Aaaaaaah, right... You could make a whole recursive algorithm out of it :P
<Rounin>
.sort it first, then recurse, then to_h it...
<Rounin>
Especially if other people have to maintain the code as well, that'll be a big hit
cappy has left #ruby [#ruby]
dhruvasagar has joined #ruby
<kjetilho>
ok, but this is good enough for my problem. there are only two levels of hashes, and I can easily add the same hack to the second level while generating it. thanks!
<Rounin>
No worries... Let's just hope it works, hehe :)
<Rounin>
The research method employed here was mashing keys in irb
<kjetilho>
hehe
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
__jmcantrell__ has joined #ruby
jmcantrell is now known as Guest1761
Guest1761 has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]