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.

Cookie header doesn't work when debugging with DocService

See original GitHub issue

Problem

While I follows annotated-http-service, I found that setting Cookie header doesn’t work when debugging with DocService.

How to test

I tested it with InjectionService.header() method as follows.

DocService

When debugging with the DocService, it doesn’t work. image

Other HTTP client

It does work well when working with the HTTP client of IntelliJ or cURL. image

curl -X GET --location "http://localhost:8080/injection/header" \
    -H "x-armeria-text: hello" \
    -H "x-armeria-sequence: 1" \
    -H "Cookie: x=y" \
    -H "Content-Type: application/json; charset=utf-8"

I wonder if it’s bug or known issue, or if I’m missing something.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ikhooncommented, Jan 15, 2021

I wonder if it’s bug or known issue, or if I’m missing something.

That sounds like a bug.

0reactions
trustincommented, Jan 21, 2021

@anuraaga Agreed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

set-cookie header not working - Stack Overflow
I'm running the server on localhost, with 127.0.0.1 aliased to subdomain-dev.domain.com on port 5080 . My When I receive the response for my ......
Read more >
Browsing and invoking services with DocService
Browsing and invoking services with DocService. Table of contents. Debug form. Sending HTTP headers. Including and excluding service methods.
Read more >
7 Keys to the Mystery of a Missing Cookie - Medium
Troubleshooting tip: open the developer console and check in the Network tab what are the response headers from OPTIONS . Solution tip: On...
Read more >
How to Debug Cookies When They Don't Work - YouTube
Some tips on how to get browser cookies to work. Written instructions: https://github.com/benawad/how-to- debug - cookies ---- If you like ...
Read more >
Caching content based on cookies - Amazon CloudFront
By default, CloudFront doesn't consider cookies when processing requests and ... CloudFront also caches the Set-Cookie headers with the object returned from ...
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