# OpenAPI.jl behind Oxygen.jl sometimes doesn't work

**URL:** <https://discourse.julialang.org/t/openapi-jl-behind-oxygen-jl-sometimes-doesnt-work/116409>\
**Category:** Web Stack\
**Tags:** question, oxygenjl, openapi\
**Created:** [June 30, 2024, 6:11am UTC](https://discourse.julialang.org/t/openapi-jl-behind-oxygen-jl-sometimes-doesnt-work/116409 "2024-06-30T06:11:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qwjyh](https://avatars.discourse-cdn.com/v4/letter/q/a4c791/32.png) [@qwjyh](https://discourse.julialang.org/u/qwjyh)\
**Post date:** [June 30, 2024, 6:11am UTC](https://discourse.julialang.org/t/openapi-jl-behind-oxygen-jl-sometimes-doesnt-work/116409/1 "2024-06-30T06:11:31Z")

</div>

I’m new to web dev.  
I’m trying to make a relay server which receives requests from users as a server implemented with Oxygen.jl and sends requests to another server as a client which uses auto-generated client code from an OpenAPI schema. When I use the auto-generated client directly from REPL, it works perfectly, but when I use it over Oxygen.jl server, it sometimes fails with the error “select/poll returned error” from curl inside Downloads.jl, especially when the request is close to the previous one less than about 30 sec.  
So I switched a client from an auto-generated one to another auto-generated one which uses HTTP.jl to perform HTTP requests and it worked perfectly.  
Why Downloads.jl one failed?

The actual code is here (WIP): [MisskeyScheduledPost.jl/src/MisskeyAPIClient/Notes.jl at 5a5b405467d71f73be14737053cfaca970bc2a25 · qwjyh/MisskeyScheduledPost.jl · GitHub](https://github.com/qwjyh/MisskeyScheduledPost.jl/blob/5a5b405467d71f73be14737053cfaca970bc2a25/src/MisskeyAPIClient/Notes.jl#L53)
