Comments (4)
Thank you for reporting. Do you get an error message. This would appear in the output in the httpyac - Log
tab. Would be great. Otherwise I will try it out myself.
from vscode-httpyac.
In my case, there is not any error message appear in the httpyacc - Log
tab.
I forked your great job and tried it locally with my Macbook Air, finding that there may be something wrong with the method "generateCodeRequest" in (src/provider/harCommandsController.ts):
It never hit my breakpoint on the callback of context.httpClient during "Generate Code".
FYI, here is my testing code:
// gen_code_not_work.http
{{
exports.date = "2021-09-10"
}}
GET https://httpbin.org/json HTTP/1.1
Date: {{date}}
from vscode-httpyac.
This is exactly the right method. Probably the error is in httpyac, which does not use the httpClient correctly.
If you want to continue looking there, here's what you'd have to do.
git clone
,npm install
andnpm link
in httpyac foldernpm link httpyac
in vscode-httpyac folder- modify
package.json
of httpyac (remove "types" and change "main" from dist to src)
{
"main": "./src/index.ts",
"types2": "./dist/index.d.ts",
- modify
tsconfig.json
in vscode-httpyac (add httpyac to rootDir)
{
"compilerOptions": {
"rootDirs": ["src", "./node_modules/httpyac/src"],
}
}
npm run watch
in vscode-httpyac
After these changes, when vscode-httpyac debug session is started, the httpyac source can also be debugged.
You don't necessarily have to find the bug. I'll be happy to take a look at it though, I'd just check out the support for GRPC before I do that.
from vscode-httpyac.
The cause was that the httpClient was overwritten in the api. I took the opportunity and rewrote the logic to use logResponse
interface. With version 3.2.0 the call should work correctly again
from vscode-httpyac.
Related Issues (20)
- Markdown response not updated when request repeated with a different body HOT 3
- VSCode: The requested URL could not be retrieved HOT 4
- TestResults always empty HOT 1
- Runner-like function to run load tests in VS Code extension? HOT 5
- [BUG] Broken environment loading HOT 2
- httpRegion.httpFile.activeEnvironment does not exist HOT 1
- Syntax highlight missing for next line of a commentted query item line HOT 1
- How about adding some shortcut keys like jupyter notebook ? HOT 1
- [feature] import curl HOT 2
- OAuth2 / OpenID Connect - Error HOT 3
- setup response path/ clear up response files HOT 4
- Wrong request host HOT 3
- request timeout in vscode but works in cli HOT 3
- Escaping curly braces is not correctly interpreted HOT 3
- env from http-client.private.env.json overwritten with values from template-http-client.private.env.json HOT 1
- JSON key that has spaces un-referencable when using variable injection HOT 3
- Input unexpected behavior HOT 2
- Feature Request: Token Exchange Grant Support for a particular audience in the same realm HOT 2
- Nodejs parsing for query params HOT 5
- I have 6.11.0 version and response lens is missing too. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-httpyac.