iron-io / functions

IronFunctions - the serverless microservices platform by

Home Page:https://iron.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unexpected error: &{<nil>} (*models.Error) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface

prologic opened this issue · comments

After finally getting around #633 and successfully pushing an image with the fn CLI I'm now running into issue with other invocations of fn that require talking to the API that I've deploed.

$ API_URL=https://f.mydomain.com/ fn apps create myapp
unexpected error: &{<nil>} (*models.Error) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface

I suspect this has something to do with some failure to startup the container as seen in #632 -- But I'm not quite sure yet; I have traefik in front of this as a LB / Reverse Proxy so I'll keep poking...

It helps if you have a non-broken LB; restarting Traefik fixed things (separate issue why Traefik was playing up): Now I get a working API:

$ curl -s -q -o - https://f.mydomain.com/ | jq '.'
{
  "goto": "https://github.com/iron-io/functions",
  "hello": "world!"
}