Unable to login with curl or provided script
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
I filled out .env with my login, kept the port the same at 8080, then did the following:
1. Built with `docker build -t "boxing/boxrec-docker" .`
2. Ran using `docker run -p 8080:8080 boxing/boxrec-docker`
Output of 2:
```
> boxrec-docker@1.1.0 start /usr/src/app
> ts-node -r tsconfig-paths/register src/main.ts
[Nest] 23 - 2020-07-13 16:26 [NestFactory] Starting Nest application...
[Nest] 23 - 2020-07-13 16:26 [InstanceLoader] AppModule dependencies initialized +14ms
[Nest] 23 - 2020-07-13 16:26 [RoutesResolver] LoginController {/login}: +11ms
[Nest] 23 - 2020-07-13 16:26 [RouterExplorer] Mapped {/, POST} route +3ms
[Nest] 23 - 2020-07-13 16:26 [RoutesResolver] BoxerController {/boxer}: +1ms
[Nest] 23 - 2020-07-13 16:26 [RouterExplorer] Mapped {/:id, GET} route +1ms
[Nest] 23 - 2020-07-13 16:26 [RoutesResolver] RatingsController {/ratings}: +1ms
[Nest] 23 - 2020-07-13 16:26 [RouterExplorer] Mapped {/, GET} route +0ms
[Nest] 23 - 2020-07-13 16:26 [RoutesResolver] ScheduleController {/schedule}: +0ms
[Nest] 23 - 2020-07-13 16:26 [RouterExplorer] Mapped {/, GET} route +1ms
[Nest] 23 - 2020-07-13 16:26 [RoutesResolver] ResultsController {/results}: +0ms
[Nest] 23 - 2020-07-13 16:26 [RouterExplorer] Mapped {/, GET} route +1ms
[Nest] 23 - 2020-07-13 16:26 [NestApplication] Nest application successfully started +3ms
running on undefined undefined
```
3. Tried using `./scripts/login.sh` and `curl -d "username=XXXX&password=XXXX" 127.0.0.1:8080/login`
I get a curl error: `curl: (56) Recv failure: Connection reset by peer`. When elaborated with a `--ascii-trace`, it says:
```
== Info: Trying 127.0.0.1:8080...
== Info: Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
=> Send header, 153 bytes (0x99)
0000: POST /login HTTP/1.1
0016: Host: 127.0.0.1:8080
002c: User-Agent: curl/7.71.1
0045: Accept: */*
0052: Content-Length: 40
0066: Content-Type: application/x-www-form-urlencoded
0097:
=> Send data, 40 bytes (0x28)
0000: username=XXXX&password=XXXX
== Info: upload completely sent off: 40 out of 40 bytes
== Info: Recv failure: Connection reset by peer
== Info: Closing connection 0
```
This happens on master and the 1.1.0 tag. I'm on Arch Linux. Happy to add any extra info as needed
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.