VITAS changed the topic of #spacedock to: Problems?: https://github.com/KSP-SpaceDock/SpaceDock/issues | Matrix/Riot Chat: https://im.52k.de +spacedock:52k.de Feel free to ask for help, we only bite a little bit! | If you want to help, please check https://github.com/KSP-SpaceDock/SpaceDock-Backend/issues/5 :) | <VITAS> inet users have the attentionspan of a squirrel....oh a nut!
HebaruSan[m] has joined #spacedock
<HebaruSan[m]> Guys, until there is an official project policy, there is no wrong way to do it. We are all friends here.
Bart[m] has joined #spacedock
<Bart[m]> AllisTauri, both are javascript so both can burn in hell.
<RockyTV> HebaruSan[m], I just re-read what the comment was and understodo it
<RockyTV> I think AllisTauri[m] suggested to expand 1024**N instead of leaving it as 1024**1, 1024**2, etc
AllisTauri[m] has quit [Quit: Idle timeout reached: 10800s]
HebaruSan[m] has quit [Quit: Idle timeout reached: 10800s]
Bart[m] has quit [Quit: Idle timeout reached: 10800s]
<RockyTV> VITAS, just wondering, who made the spacedock cartoon art? it looks amazing
AllisTauri[m] has joined #spacedock
<AllisTauri[m]> <irc_RockyTV "I think AllisTauri#5998 suggeste"> True. Just use 1048576, 1073741824 and so on; or better yet, define module-level constants
AllisTauri[m] has quit [Quit: Idle timeout reached: 10800s]
Dazzyp has joined #spacedock
Daz has quit [Ping timeout: 190 seconds]
Dazzyp is now known as Daz
Gregrox has joined #spacedock
Gregrox has quit [Quit: webchat.esper.net]
<DasSkelett> Sorry AllisTauri, in no way wanted to offend you. I wanted to describe how I would do it, but I chose the wrong words for that, I see. Didn't want to attack you.
AllisTauri[m] has joined #spacedock
<AllisTauri[m]> <irc_DasSkele "Sorry AllisTauri, in no way want"> Oh, sorry if i sounded offended, never meant it this way O_o
<AllisTauri[m]> Was just trying to reword my suggestion ^_^
<AllisTauri[m]> Seems my feeling of English is not subtle enough to catch social subtexts
<DasSkelett> Neither is mine, so we probably both talked past each other.
<DasSkelett> Oh actually, I just realized RIOT truncated you message on IRC. The second part was missing...
<AllisTauri[m]> What client do i need to use for this then? ~_~'
<DasSkelett> It's not your fault. I think it's a (weird) limitation of the bridge.
<DasSkelett> Because in the web interface on im.52k.de the message is complete
<AllisTauri[m]> I mean I use Riot from my Android right now; and it sent the whole message that was sent back via the bridge truncated? O_o
<AllisTauri[m]> Oh well, at least we don't use torchat and such) But I would still prefer discord. As it stands now, i have 8 messaging apps to communicate with people at work and in KSP community =]
<DasSkelett> This spacedock channel should be mirrored to Discord too. Don't know if the message was send there complete or cut too. Can't find the link to the discord channel anymore...
<AllisTauri[m]> I've switched to Riot because not everything *from* discord was sent back here
<DasSkelett> Oh, that's bad. Looks like the brdige is not working as good as I thought first. But to be fair, matrix isn't around that long yet, we should give it some time.
<RockyTV> DasSkelett, https://discord.gg/y9xWhe
<RockyTV> the bridge bot takes a while to process new messages
<DasSkelett> Thanks RockyTV
<RockyTV> DasSkelett, AllisTauri[m] updated my pr
AllisTauri[m] has quit [Quit: Idle timeout reached: 10800s]
<DasSkelett> Yep. Actually Jinja2 somehow doesn't accept `is not None` comparisons. I wrote a review comment on the PR.
<RockyTV> fixed
<DasSkelett> Found a new reference that suggests using `is not none`, with lowercase none: https://github.com/pallets/jinja/issues/520.
<RockyTV> ugh
<DasSkelett> ^^
<RockyTV> force pushed again
<DasSkelett> Great. Works again now.
<DasSkelett> VITAS, what do you think about redirecting URLs with trailing slashes to the corresponding URLs without trailing slashes?
<DasSkelett> Right now it has to be e.g. spacedock.info/mod/42 , spacedock.info/mod/42/ returns a 404. IMHO it would be nice if there would be an automatic redirect.
Gregrox has joined #spacedock
<Gregrox> Has anyone else noticed the uploading problem?
<Gregrox> it sticks at 100%
<Gregrox> I put up an issue on GitHub but got no response
<Gregrox> (yes)
<Gregrox> (yet*)
<RockyTV> Gregrox, can you retry uploading the version?
<RockyTV> keep console open, and try to upload the version again
<DasSkelett> The JSON parsing that throws the error is already part of error handling...
<DasSkelett> Those are the best, eexceptions during exception handling.
<Gregrox> I can't do that right now because I am desperately tired and need to nap
Guest95010 has joined #spacedock
<Gregrox> but I can tell you I did try reuploading it and it didn't work
Guest95010 has quit [Client Quit]
<Gregrox> and I'm pretty sure the errors in the console are the same as the ones on the github issue
linuxgurugamer has joined #spacedock
Gregrox has quit [Quit: webchat.esper.net]
<linuxgurugamer> Hi, just an FYI for anyone who can help, Spacedock is unable to complete uploads, so no new or updated mods can be put on it
linuxgurugamer has quit [Client Quit]
<RockyTV> ugh
<RockyTV> I don't think our error handling is working as it should: https://github.com/KSP-SpaceDock/SpaceDock/blob/master/scripts/update.coffee#L42
<RockyTV> DasSkelett, you don't have access to the server, do you?
<DasSkelett> Actually I'm wrong, it isn't, it's the else case for 502, so actually if the mod is _not_ to big.
<DasSkelett> No, I don't
<RockyTV> VITAS, you there?
<DasSkelett> No, I think it's line 39, not 42 in that update.coffee
<RockyTV> 500 is internal server error so something's wrong with spacedock.info
<DasSkelett> Because that's what line 64 of /static/update.js comes from.
<DasSkelett> Yeah
<RockyTV> honestly we should add a this.statusCode == 500 and just add an error "something's wrong with our server!"
<DasSkelett> Yeah the problem is that `this.responseText` is not a json, but if I had to guess, html (since it begins with '<') right now.
<RockyTV> yeah
<DasSkelett> But I have no idea what exactly this responseText is, where it is set and what it does. And why it changed in its format out of nowhere.
<DasSkelett> Oh it's some XHR stuff. I think it's the result of `xhr.open('POST', '/api/mod/' + window.mod_id + '/update')`.
<DasSkelett> That would mean that something's wrong with the API uploading...
<DasSkelett> I'm gonna create an account on the alpha server and try some manual API requests
<RockyTV> I wasn't able to create an account on it
<DasSkelett> Neither am I...
<DasSkelett> Well then I'm gonna try to upload a dummy mod on the production server.
<RockyTV> any progress?
<DasSkelett> I'm always getting `{"error": true, "reason": "You are not logged in."}`, not sure whether that's because curl doesn't transmit my cookie, or because something server-side...
<RockyTV> you can transmit your cookie with curl
<DasSkelett> Yeah, curl -c ./cookie , right?
<RockyTV> but that error is not a 500 internal server error
<RockyTV> have you logged in?
<DasSkelett> With curl -c ./cookie -F username=... -F -password=... https://spacedock.info/api/login
<DasSkelett> oh I see, it needs to be -b not -c to read from cookie files
<RockyTV> yeah something's up
<DasSkelett> Yep, I recieve a short html with "Internal Server Error" as header and content
<DasSkelett> That doesn't really help us anything...
<RockyTV> content-type: text/html
<RockyTV> we need someone with server access
<RockyTV> let me ping darklight
<RockyTV> DasSkelett, check this message:
<RockyTV> "A solar flare hit our server and some modules were offlined. Contact {{ support_mail }} if they're not back soon."
<DasSkelett> uhhh, where's that from?
<DasSkelett> Or is thath your suggestion for Spacedocks 500 error?
<DasSkelett> Would fit.
<RockyTV> my suggestion
<RockyTV> is there a config for irc channel?
<DasSkelett> What config do you want exactly?
<DasSkelett> Going to bed now.Let's hope someone of the others wakes up early and takes a look. Good night