fermyon / advent-of-spin Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://www.fermyon.com/blog/advent-of-spin-2022
License: Apache License 2.0
Home Page: https://www.fermyon.com/blog/advent-of-spin-2022
License: Apache License 2.0
when it is mentioned "rounded to the closest .1 mile."
shouldn't it be
33.85nm == 33.9 nm
33.44nm == 33.4nm
or it is meant to be "rounded to the closes 1 mile"
33.94nm == 34 nm
33.44nm == 33 nm
also one minor typo(?) in readme
"This second/fourth challenge won't introduce you to any new concepts or SDKs,"
(base) ➜ CHALLENGE-4 git:(main) ✗ make test
hurl --test test.hurl
test.hurl: Running [1/1]
test.hurl: Success (3 request(s) in 12 ms)
--------------------------------------------------------------------------------
Executed files: 1
Succeeded files: 1 (100.0%)
Failed files: 0 (0.0%)
Duration: 13 ms
alas, submit.hurl fails with:
error: Assert status code
--> submit.hurl:6:8
|
6 | HTTP/* 200
| ^^^ actual value is <500>
|
readme has the following
Challenges will be added every Monday and Friday morning (9am CET)
[Challenge 1](https://github.com/fermyon/advent-of-spin/blob/main/CHALLENGE-1/README.md)
[Challenge 2](https://github.com/fermyon/advent-of-spin/blob/main/CHALLENGE-2/README.md)
[Challenge 3](https://github.com/fermyon/advent-of-spin/blob/main/CHALLENGE-3/README.md)
Challenge 4: Coming On Dec 16th at 10am CET
Challenge 4 was already uploaded on 12 December.
The top line says challenges will be added at 9am CET, while for Challenge 4 it says 10am CET..
sorry for the noise...
(dgg) ➜ CHALLENGE-3 git:(main) ✗ make test
hurl --test test.hurl
test.hurl: Running [1/1]
test.hurl: Success (1 request(s) in 21 ms)
--------------------------------------------------------------------------------
Executed files: 1
Succeeded files: 1 (100.0%)
Failed files: 0 (0.0%)
Duration: 21 ms
but alas, the submit.hurl returns success: false
with
Assert status code\n --> submit.hurl:6:8\n |\n 6 | HTTP/* 200\n | ^^^ actual value is <404>\n |
Seems quite common that tests work but submission fails.
output of hurl -v ....
* Options:
* fail fast: true
* follow redirect: false
* insecure: false
* max redirect: 50
* retry: false
* retry max count: 10
* Variables:
* serviceUrl: https://solution-2-r65yr6qt.fermyon.app/
* ------------------------------------------------------------------------------
* Executing entry 1
*
* Cookie store:
*
* Request:
* POST https://advent-of-spin-backend-tlrr40nq.fermyon.app/c2
*
* Implicit content-type=application/json
*
* Request can be run with the following curl command:
* curl 'https://advent-of-spin-backend-tlrr40nq.fermyon.app/c2' -H 'Content-Type: application/json' --data $'{\n "serviceUrl": "https://solution-2-r65yr6qt.fermyon.app/"\n}'
*
> POST /c2 HTTP/2
> Host: advent-of-spin-backend-tlrr40nq.fermyon.app
> accept: */*
> content-type: application/json
> user-agent: hurl/1.8.0
> content-length: 62
>
* Response: (received 89 bytes in 442 ms)
*
< HTTP/2 500
< date: Sat, 17 Dec 2022 13:46:14 GMT
< content-type: text/plain; charset=utf-8
< content-length: 89
<
Hi, just wondering. Is test.hurl for CH2 correct ? seems to be missing
GET http://localhost:3000/lowercase { "value": "RaWKoDe" }
around line #14
I corrected it locally and then correctly parses the local version of my submission.
But then again, when I hurl submit
CH2 'officially' it fails with:
Endpoint didn't contain correct Content-Type header!
Thanks in advance, Dennis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.