• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TykTechnologies / tyk / 4936

Build:
DEFAULT BRANCH: master
Ran 30 May 2018 04:24AM UTC
Jobs 2
Files 95
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4936

push

travis-ci

buger
bug: unable to transform json array response body

Create a json response body transform. Use it to filter an array.

Because the gateway unmarshals `bodyData` into `map[string]interface{}`,
this means that it is unable to unmarshal an array.

```
[May 25 19:49:13] ERROR outbound-transform: Error unmarshalling JSON:
json: cannot unmarshal array into Go value of type map[string]interface
{} api_id=62498653ade2405b64537d94d2666dc0 path=example-array
server_name=https://my-upstream.com/
```

This fix resolves the response body transform by unmarshaling into an
`interface{}`.

We need to find a suitable solution for request body transforms. This is
currently not possible due to:

```
if tmeta.TemplateData.EnableSession {
	session := ctxGetSession(r)
	bodyData["_tyk_meta"] = session.MetaData
}

if contextVars {
	bodyData["_tyk_context"] = ctxGetData(r)
}
```

8575 of 15128 relevant lines covered (56.68%)

1.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4936.1 (LATEST_GO=true) 30 May 2018 04:24AM UTC 0
56.68
Travis Job 4936.1
2 4936.2 (LATEST_GO=true) 30 May 2018 04:25AM UTC 0
57.29
Travis Job 4936.2
Source Files on build 4936
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4936
  • 1c3a4007 on github
  • Prev Build on master (#4927)
  • Next Build on master (#4937)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc