question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working v2.2.0

See original GitHub issue

Describe the bug APM agent always fail when agent send the transaction data. The error message says “context.request.url.port should be string or null”

I[#] S[#/allOf/0] allOf failed
I[#/context/request/url/port]
S[#/allOf/0/properties/context/properties/request/properties/url/properties/port/type] expected string or null, but got number

To Reproduce Steps to reproduce the behavior:

  1. Use this config ‘…’
  2. Then call ‘…’
  3. Then do ‘…’
  4. See error

Expected behavior It works with v2.1.0

Environment (please complete the following information)

  • OS: OS X
  • Node.js version: 10.15.0
  • APM Server version: 6.5.4
  • Agent version: 2.2.0
  • Koa version: 2.6.2
  • Koa Router version: 7.4.0

How are you starting the agent? (please tick one of the boxes)

  • Calling agent.start() directly (e.g. require('elastic-apm-node').start(...))
  • Requiring elastic-apm-node/start from within the source code
  • Starting node with -r elastic-apm-node/start

Additional context Add any other context about the problem here.

  • Agent config options

    Click to expand
    replace this line with your agent config options
    
  • package.json dependencies:

    Click to expand
    replace this line with your dependencies section from package.json
    

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
watsoncommented, Jan 21, 2019

I’ll look into why this wasn’t caught by our integration tests. It obviously shouldn’t have slipped through.

0reactions
watsoncommented, Jan 21, 2019

Note to self: It seems we’ll allow port to be a number in APM Server 7.0.0: https://github.com/elastic/apm-server/pull/1813

Read more comments on GitHub >

github_iconTop Results From Across the Web

CUSTOM_AUTH not working on v2.2.0 (working on 1.28.3)
I'm working on KMM project where I have interface/protocol inside shared module and implementations on iOS and Android side. I have to say...
Read more >
Many problems after update to v2.2.0 - Node-RED Forum
First problem : all ui_spacers used in the dashboard have no more groups ! They appear to own to one of my flows....
Read more >
Template v2.2.0 does not have a package available - Mac M1
Hi Any idea how I can fix this error, when performing terraform init? template v2.2.0 does not have a package available for your...
Read more >
Windows Migration Assistant v2.2.0.0 not … - Apple Community
Howdy dcharleyultra,. It's great to have your in the Apple Support Community. We understand that you're running into issues using this particular version...
Read more >
V2.2.0 on macOS: could not locate LUTs
Hi, I've confirmed the installation was successful and the plugin version is 2.2.0. I'm running LrC 9.4 on macOS Big Sur public beta...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found