Closed Karql closed 1 year ago
Hello @Karql,
For GET /api/emails
, you have set the value of the sort
parameter to string
Request URL : http://localhost:5080/api/emails/?page=0&size=1&sort=string
I invite you to remove this parameter or put another value (an attribute of the Email
object, like receivedOn
)
Thank you @etidahouse I have missed this.
Maybe it should be tweaked a bit, because this is a default payload in swagger 😉
So REST API works correctly but main problem still occurs - Web UI not working at all.
@Karql
I have pull the image, by default, the Web UI is deployed at http://localhost:3000/
I will try to do a PR to fix this in the correct the value for the README.md
andsort
parameter in Swagger
Port 3000? I can not see any 3000 open.
In previous version e.g. 1.10.4
default port was 5080
.
I have found that this port was changed to 8080
in https://github.com/gessnerfl/fake-smtp-server/issues/139
So I have tried to change it using env variable SERVER_PORT: 5080
.
This works as expected but something is worng with UI itself.
IMO 3000 is only used for dev mode when you run npm start
from webapp/
but this is something else.
Ok I have found that you need to explicitly include index.html
in url.
http://localhost:5080/index.html
because there is no redirect.
But anyway react ui application wont boot up and shows blank page:
There are no errors on console:
It only started working when I reverted back to 2.0.0
This commit broke the container: https://github.com/gessnerfl/fake-smtp-server/pull/151/files
I crosschecked it and I think that the issue is related to how JIB is building the docker image. Will further investigate how to fix it.
This issue should be fixed with version 2.0.3. @Karql can you please cross check?
@gessnerfl looks ok now 👌
Hi!
I have tried to use docker image for
v2
.docker-compose.yml
After running it and open
http://localhost:5080/
There is an error:
Logs:
When container starting there is also a warn:
2023-05-10T08:48:57.916Z WARN 1 --- [ main] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates, check your Thymeleaf configuration, or set spring.thymeleaf.check-template-location=false)
btw.
swagger is working for
GET /api/meta-data
but for
GET /api/emails
there is also error 500Best regards, Mateusz