quantified-uncertainty / metaforecast

Fetch forecasts from prediction markets/forecasting platforms to make them searchable. Integrate these forecasts into other services.
https://metaforecast.org/
MIT License
60 stars 6 forks source link

Api not working #46

Closed NunoSempere closed 2 years ago

NunoSempere commented 2 years ago

Right now, https://metaforecast.org/api/questions returns

{
  "errorMessage": "Response payload size exceeded maximum allowed payload size (6291556 bytes).",
  "errorType": "Function.ResponseSizeTooLarge"
}

My guess is that this issue is kinda unavoidable, because the api fetches stuff on the server side. I'm thinking we might want to go back to api.metaforecast.org. Not sure how using graphql changes this.

berekuk commented 2 years ago

Huh.

Opinions:

How urgent is this? I'd like to figure out #44 first, since one of its outcomes might be "let's just leave Netlify".

NunoSempere commented 2 years ago

This is not really urgent, and a bit moot with the coming graphql

berekuk commented 2 years ago

Separate domain doesn't seem like an implementation detail

I meant "an implementation detail for the end user" (our infrastructure decisions shouldn't affect the urls, otherwise users would have to switch if we change our setup), but I'm nitpicking, sorry.

I still believe that paging + Vercel (#52) would solve all our current pains and I'd prefer to avoid a separate DO-hosted domain if possible. In particular, branch preview urls for API might be useful in the future, since APIs and React code often change in lockstep.

berekuk commented 2 years ago

/api/questions is no more, API consumers should use GraphQL questions query which implements paging.