Comments (5)
Given the 2014 updates with RFCs 7230-7237 SuperDeno really should really support bodies on GET (with the caveat that some legacy servers will reject).
Thanks for raising this - will try and take a look this weekend!
SuperDeno is in effect a wrapper around SugerAgent using fetch
to make the requests. One thing that would useful to the investigation (if you have the time!) would be to see the result of a manually constructed fetch
to your API endpoint with the same setup as SuperDeno is meant to be providing you so we can see the result / error message (the current one isnβt very insightful!)
from superdeno.
Hey sorry i mindlessly put that there without realising how it came across. I actually renamed the real API endpoints for clarity more than anything but created confusion in the process. Fixed it in the original post ^
fetch worked perfectly, below is a screenshot incase you want a sense of how I implemented it:
also just so you know testWithFreshDb({ name: ...
is just a wrapper around Deno.test with a database setup/tear-down. Shouldn't get in the way of superdeno but happy to share if you'd like to be sure.
from superdeno.
PS: I've switched my implementation to just use query params for now (turns out Angular doesn't support get payloads either). Sharing this so you're not feeling any pressure to fast track this. Although I do think it'll be nice to include for completeness at some stage.
from superdeno.
Actually, before that:
await superdeno("http://localhost:8080/api")
.get("/api/endpoint/")
You appear to have duplicated /api
, is that intentional? I would expect that you should be doing:
await superdeno("http://localhost:8080")
.get("/api/endpoint/")
Would you mind trying that out? (Unless this is deliberate on your part!)
from superdeno.
Should hopefully have been fixed in #12 and released in 1.6.1
-> https://github.com/asos-craigmorten/superdeno/releases/tag/1.6.1
from superdeno.
Related Issues (20)
- 4xx and 5xx response missing body and text HOT 4
- [BUG] Error thrown on empty body responses (e.g. 304)
- Consider using Pagic to build the website? HOT 1
- [BUG] res.header vs res.headers typescript issues
- [CHORE] Use Deno's inspect instead of one from NPM HOT 2
- SuperDeno does not process headers in the response from Opine HOT 4
- Re-introduce multiple cookie headers in test HOT 1
- Question: testing if header doesn't exist HOT 2
- Expected "Hello World" response body, got "HTTP/1.1 20" HOT 10
- Support new [email protected]/http API HOT 3
- Error: Request has been terminated for native http server HOT 4
- Couldn't make `multipart/form-data` requests with oak. HOT 4
- Getting async leaking error when testing opine v2 HOT 3
- Attach is possibly not sending the actual file to the app HOT 1
- `HandlerLike` signature doesn't match actual `server.Handler`. Missing `connInfo` HOT 5
- Question: How to run superdeno with plain deno server HOT 2
- Can this be used with `express`? HOT 1
- How does superdeno intercept redirects? HOT 8
- Release 1.5 causing an error on download HOT 3
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 superdeno.