Skip to content

Conversation

@speeddragon
Copy link

Issue

When set <<"parallel">> => true in a route, the request will return 404 Not Found, because an error occurred in the code.

Example:

            #{
                % Routes for GraphQL requests to use a remote GraphQL API.
                <<"template">> => <<"/graphql">>,
                <<"parallel">> => true,
                <<"nodes">> =>
                    [
                        #{
                            <<"prefix">> => <<"https://ao-search-gateway.goldsky.com">>,
                            <<"opts">> => #{ http_client => httpc, protocol => http2 }
                        },
                        #{
                            <<"prefix">> => <<"https://arweave-search.goldsky.com">>,
                            <<"opts">> => #{ http_client => httpc, protocol => http2 }
                        },
                        #{
                            <<"prefix">> => <<"https://arweave.net">>,
                            <<"opts">> => #{ http_client => gun, protocol => http2 }
                        }
                    ]
            },

Related pull requests

@speeddragon speeddragon changed the base branch from main to edge December 31, 2025 16:16
}
],
hb_store:reset(Store),
Opts = #{store => Store},
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set Routes here, will not have an impact how parallel property if obtained, because if not present in the Store configuration, it will be fetched from hb_opts:default_message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants