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.

Problem with transitive request references not being resolved

See original GitHub issue

Hi @AnWeber, first of all, thanks for httpyac. I really appreciate your work.

I noticed a problem with nested request references where each request resides in a dedicated .http file.

Starting point

File: a.http

# @name getHttpbinA
GET https://httpbin.org/get?source=getHttpbinA HTTP/1.1
X-Foo: barA

File: b.http

# @import ./a.http

###
# @name getHttpbinB
# @ref getHttpbinA
GET https://httpbin.org/get?source=getHttpbinB HTTP/1.1
X-Foo: barB-{{getHttpbinA.headers["X-Foo"]}}

File: c.http

# @import ./b.http

###
# @name getHttpbinC
# @ref getHttpbinB
GET https://httpbin.org/get?source=getHttpbinC HTTP/1.1
X-Foo: barC-{{getHttpbinB.headers["X-Foo"]}}

Observation 1:

Calling getHttpbinC in vscode yields ReferenceError - getHttpbinA is not defined The direct dependency getHttpbinB was resolved correctly; whereas getHttpbinA was not. The httpyac variable view shows image

Observation 2:

Calling getHttpbinB in vscode works as expected. The httpyac variable view shows image

Calling getHttpbinC then without clearing the response history works. However, the httpyac variable view misses getHttpbinA image

Observation 3:

If all 3 requests reside in a single .http file calling getHttpbinC works. Also, the httpyac variable view is complete image

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
wusawocommented, Mar 2, 2022

@AnWeber Great. I have tested both fixes with v5.0.4 successfully. Thank you.

1reaction
AnWebercommented, Feb 22, 2022

I love how detailed you describe your Issues. Will check it out. Unfortunately, this is another mistake.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reference transitive not working when app and libs ... - GitHub
The issue is there is a .NET Framework app which references a .NET Standard Library, which references a library multi-targeted to .NET Standard ......
Read more >
Disable transitive project reference in .NET Standard 2
The problem is that I can use Model in the Web project (i.e. the compiler sees the type Model and I can do...
Read more >
Dependencies of project reference not copied to output ...
This usually fixes the issue as PackageReference restore style will copy the transitive dependencies accordingly and will choose the right one ...
Read more >
Solving Transitive Dependency Issues in .NET Core
Transitive dependency issues can be hard to identify and solve. Here's my unscientific approach to fixing them.
Read more >
Understanding dependency resolution - Gradle User Manual
Dependency resolution will fail if the required artifacts are not available in any repository specified by the build, even if the local cache...
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