Coder Social home page Coder Social logo

advent-of-spin's Issues

challenge-3 make test works, submit.hurl fails with a 404?

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   |

CH-4 make test works - but submit fails

(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>
   |

is test.hurl correct ?

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

minor corrections in Readme

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..

CH-2 tests work as expected, submit fails with HTTP 500

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
<

Challenge 4 : Rounding of

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,"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.