Search results

  1. H

    r28087 - What's Changed [*]Create JSON API for relay scripts. by ]@phulin] in

    I was not going to mention the China angle, but since you mention it: I don't think there's any verification needed to state that Alibaba is a Chinese-owned company headquartered in China, and the vast majority of their employees are also based in China. I am not saying by any means that the...
  2. H

    r28087 - What's Changed [*]Create JSON API for relay scripts. by ]@phulin] in

    fastjson2 has me worried because it's hundreds of thousands of lines of Java across thousands of files over thousands of commits, and it has a bunch of features we don't need (read: broad attack surface). Based on the "projects using us" list, I also don't see much adoption by other large...
  3. H

    r28087 - What's Changed [*]Create JSON API for relay scripts. by ]@phulin] in

    @fronobulax raised some points in the pull request that I feel warrant more discussion / visibility. @ikzann @Ryo_Sangnoir The obvious place where faster JSON might be relevant is in parsing api.php, but it's also not clear to me that JSON handling is a bottleneck at this time. It's also not...
  4. H

    Bug IO Exception almost daily on manual adventuring.

    Hm. For the next time this happens again, mind grabbing a debug log at the start of your session, then again right after it occurs? Specifically, debug on; text game.php; debug off should be enough to grab some response headers, which'll tell us which version of nginx is issuing the GOAWAY...
  5. H

    Bug IO Exception almost daily on manual adventuring.

    KoL is apparently using both nginx/1.18.0 and nginx/1.8.1, per the returned headers (the AWSALB cookie pins you to a particular backend). Perhaps they've recently started a migration, which would explain why this started happening again. (HTTP/2 support in nginx was added in 1.9.5.)...
  6. H

    Bug IO Exception almost daily on manual adventuring.

    That said, r26388 implemented the nominal "reset the HttpClient every X requests" (which was later refined in r27798). I would be a little surprised if we're running into the headers-too-big problem. I'd be more inclined to believe that something isn't actually using the ResettingHttpClient.
  7. H

    Bug IO Exception almost daily on manual adventuring.

    If that were the case, then ~every request would result in a GOAWAY. We do not have our own hand-rolled HTTP codec, as we're relying on Java's standard library implementation. As such, I'm very skeptical of the notion that Mafia is doing something that's standards-noncompliant. We have seen...
  8. H

    Way to recover old stored passwords?

    As xKiv points out, you're probably best off updating Mafia to a more recent build. That said... The passwords are stored in settings/GLOBAL_prefs.txt as saveState.<your username> as a number, after having gone through a couple of encoding steps. Let's suppose you find...
  9. H

    JSON

    It looks like the URL has moved to https://museum.loathers.net/api/player/2115655?routes/player.$id._index (as @Ryo_Sangnoir pointed out in May) let kolmafia = require("kolmafia") let results = {}; for (let playerId of [1, 354981]) { let url =...
  10. H

    Bug You are too drunk to continue

    Hm. I wonder if this is related to being locked in a chain of choice adventures at the time we're trying to refresh our list of skills.
  11. H

    Bug You are too drunk to continue

    I don't suppose you can share any maximization strings or details re: exactly what got equipped when? If you can find a sequence of actions (beyond "run a specific script that adventures and otherwise depends a lot on current player state") that reproduces the bad state consistently from a...
  12. H

    Bug Meat amount is not detected

    Anyways, let us know if you still see this problem with r28033 (or later). I can't test readily because I don't think I have access to an account with > 2 billion meat on hand.
  13. H

    Bug Meat amount is not detected

    CharSheetRequest still uses StringUtilities.parseInt in this and a few related contexts, which results in clobbering the value we parse from api.php / charpane.php. edit: https://github.com/kolmafia/kolmafia/pull/2416
  14. H

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

    I see the same error on r28030 (i.e. before my dependency bump). It seems nominally benign, although I believe it's tied to the greclipse() line in the spotless stanza.
  15. H

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

    I saw that too. It's probably related to at least one of the dependencies I bumped. When I tried upgrading spotless, that yielded some actual diffs, so I held off for the time being. I'll look into it some more.
  16. H

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

    > NOTE: This plugin changed the core maintainer and has new coordinates:https://plugins.gradle.org/plugin/com.gradleup.shadow https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow I'll send a PR in a bit.
  17. H

    Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

    Looks like the shadow plugin. https://github.com/GradleUp/shadow/issues/924
  18. H

    Automatically download the newest daily build

    I make no promises about the attached file (slightly edited source plus exe), but it seems to run just fine for me using various compatibility tools on Linux. I continue to have no real experience with C#. (edit: this apparently lost matt.chugg's change to enable TLS 1.2 back on page 8. If for...
  19. H

    Bug toJson fails for nullish values

    I forgot that I had a branch that tinkered with this, but I've now created https://github.com/kolmafia/kolmafia/pull/2381.
Back
Top