We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create_queue
MWE
julia> using GoAWS, AWS julia> @service SQS Main.SQS julia> server = GoAWS.Server() GoAWS.Server("http://localhost:4100", unstarted) julia> aws_config = GoAWSConfig(server) GoAWSConfig(URI("http://localhost:4100"), "us-east-2") julia> run(server; wait=false) GoAWS.Server("http://localhost:4100", running) julia> SQS.create_queue("my_queue"; aws_config) ERROR: AWS.AWSExceptions.AWSException: 400 -- AWSException HTTP.Exceptions.StatusError(400, "POST", "/", HTTP.Messages.Response: """ HTTP/1.1 400 Bad Request Date: Mon, 01 Jul 2024 12:22:45 GMT Content-Length: 11 Content-Type: text/plain; charset=utf-8 [Message Body was streamed]""") Bad Request Stacktrace: [1] (::HTTP.ConnectionRequest.var"#connections#4"{…})(req::HTTP.Messages.Request; proxy::Nothing, socket_type::Type, socket_type_tls::Nothing, readtimeout::Int64, connect_timeout::Int64, logerrors::Bool, logtag::Nothing, closeimmediately::Bool, kw::@Kwargs{…}) @ HTTP.ConnectionRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/ConnectionRequest.jl:144 [2] connections @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/ConnectionRequest.jl:60 [inlined] [3] (::HTTP.RetryRequest.var"#manageretries#3"{…})(req::HTTP.Messages.Request; retry::Bool, retries::Int64, retry_delays::ExponentialBackOff, retry_check::Function, retry_non_idempotent::Bool, kw::@Kwargs{…}) @ HTTP.RetryRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/RetryRequest.jl:35 [4] manageretries @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/RetryRequest.jl:30 [inlined] [5] (::HTTP.CookieRequest.var"#managecookies#4"{…})(req::HTTP.Messages.Request; cookies::Bool, cookiejar::HTTP.Cookies.CookieJar, kw::@Kwargs{…}) @ HTTP.CookieRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/CookieRequest.jl:42 [6] managecookies @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/CookieRequest.jl:19 [inlined] [7] (::HTTP.HeadersRequest.var"#defaultheaders#2"{…})(req::HTTP.Messages.Request; iofunction::Nothing, decompress::Nothing, basicauth::Bool, detect_content_type::Bool, canonicalize_headers::Bool, kw::@Kwargs{…}) @ HTTP.HeadersRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/HeadersRequest.jl:71 [8] defaultheaders @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/HeadersRequest.jl:14 [inlined] [9] (::HTTP.RedirectRequest.var"#redirects#3"{…})(req::HTTP.Messages.Request; redirect::Bool, redirect_limit::Int64, redirect_method::Nothing, forwardheaders::Bool, response_stream::Base.BufferStream, kw::@Kwargs{…}) @ HTTP.RedirectRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/RedirectRequest.jl:17 [10] redirects @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/RedirectRequest.jl:14 [inlined] [11] (::HTTP.MessageRequest.var"#makerequest#3"{…})(method::String, url::URIs.URI, headers::Vector{…}, body::String; copyheaders::Bool, response_stream::Base.BufferStream, http_version::HTTP.Strings.HTTPVersion, verbose::Int64, kw::@Kwargs{…}) @ HTTP.MessageRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/MessageRequest.jl:35 [12] makerequest @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/MessageRequest.jl:24 [inlined] [13] request(stack::HTTP.MessageRequest.var"#makerequest#3"{…}, method::String, url::URIs.URI, h::Vector{…}, b::String, q::Nothing; headers::Vector{…}, body::String, query::Nothing, kw::@Kwargs{…}) @ HTTP ~/.julia/packages/HTTP/sJD5V/src/HTTP.jl:457 [14] #request#20 @ ~/.julia/packages/HTTP/sJD5V/src/HTTP.jl:315 [inlined] [15] macro expansion @ ~/.julia/packages/Mocking/U3Rvo/src/mock.jl:26 [inlined] [16] (::AWS.var"#48#50"{Request, OrderedCollections.LittleDict{Symbol, Any, Vector{Symbol}, Vector{Any}}})() @ AWS ~/.julia/packages/AWS/cVXvB/src/utilities/request.jl:225 [17] (::Base.var"#96#98"{Base.var"#96#97#99"{…}})(; kwargs::@Kwargs{}) @ Base ./error.jl:296 [18] (::Base.var"#96#98"{Base.var"#96#97#99"{AWS.AWSExponentialBackoff, AWS.var"#49#51", AWS.var"#48#50"{…}}})() @ Base ./error.jl:291 [19] _http_request(http_backend::AWS.HTTPBackend, request::Request, response_stream::IOBuffer) @ AWS ~/.julia/packages/AWS/cVXvB/src/utilities/request.jl:250 [20] macro expansion @ ~/.julia/packages/Mocking/U3Rvo/src/mock.jl:26 [inlined] [21] (::AWS.var"#41#44"{GoAWSConfig, Request, IOBuffer, Vector{Int64}})() @ AWS ~/.julia/packages/AWS/cVXvB/src/utilities/request.jl:134 [22] (::AWS.var"#42#46"{AWS.var"#41#44"{GoAWSConfig, Request, IOBuffer, Vector{Int64}}, IOBuffer})() @ AWS ~/.julia/packages/AWS/cVXvB/src/utilities/request.jl:149 [23] (::Base.var"#96#98"{Base.var"#96#97#99"{…}})(; kwargs::@Kwargs{}) @ Base ./error.jl:296 [24] (::Base.var"#96#98"{Base.var"#96#97#99"{AWS.AWSExponentialBackoff, AWS.var"#43#47"{…}, AWS.var"#42#46"{…}}})() @ Base ./error.jl:291 [25] submit_request(aws::GoAWSConfig, request::Request; return_headers::Nothing) @ AWS ~/.julia/packages/AWS/cVXvB/src/utilities/request.jl:200 [26] (::JSONService)(operation::String, args::Dict{String, Any}; aws_config::GoAWSConfig, feature_set::AWS.FeatureSet) @ AWS ~/.julia/packages/AWS/cVXvB/src/AWS.jl:379 [27] JSONService @ ~/.julia/packages/AWS/cVXvB/src/AWS.jl:356 [inlined] [28] #create_queue#9 @ ~/.julia/packages/AWS/cVXvB/src/services/sqs.jl:399 [inlined] [29] top-level scope @ REPL[6]:1 caused by: HTTP.Exceptions.StatusError(400, "POST", "/", HTTP.Messages.Response: """ HTTP/1.1 400 Bad Request Date: Mon, 01 Jul 2024 12:22:45 GMT Content-Length: 11 Content-Type: text/plain; charset=utf-8 [Message Body was streamed]""") Stacktrace: [1] (::HTTP.ExceptionRequest.var"#exceptions#2"{…})(stream::HTTP.Streams.Stream{…}; status_exception::Bool, timedout::Nothing, logerrors::Bool, logtag::Nothing, kw::@Kwargs{…}) @ HTTP.ExceptionRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/ExceptionRequest.jl:19 [2] exceptions @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/ExceptionRequest.jl:13 [inlined] [3] (::HTTP.TimeoutRequest.var"#timeouts#3"{…})(stream::HTTP.Streams.Stream{…}; readtimeout::Int64, logerrors::Bool, logtag::Nothing, kw::@Kwargs{…}) @ HTTP.TimeoutRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/TimeoutRequest.jl:18 [4] (::HTTP.ConnectionRequest.var"#connections#4"{…})(req::HTTP.Messages.Request; proxy::Nothing, socket_type::Type, socket_type_tls::Nothing, readtimeout::Int64, connect_timeout::Int64, logerrors::Bool, logtag::Nothing, closeimmediately::Bool, kw::@Kwargs{…}) @ HTTP.ConnectionRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/ConnectionRequest.jl:122 [5] connections @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/ConnectionRequest.jl:60 [inlined] [6] (::HTTP.RetryRequest.var"#manageretries#3"{…})(req::HTTP.Messages.Request; retry::Bool, retries::Int64, retry_delays::ExponentialBackOff, retry_check::Function, retry_non_idempotent::Bool, kw::@Kwargs{…}) @ HTTP.RetryRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/RetryRequest.jl:35 [7] manageretries @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/RetryRequest.jl:30 [inlined] [8] (::HTTP.CookieRequest.var"#managecookies#4"{…})(req::HTTP.Messages.Request; cookies::Bool, cookiejar::HTTP.Cookies.CookieJar, kw::@Kwargs{…}) @ HTTP.CookieRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/CookieRequest.jl:42 [9] managecookies @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/CookieRequest.jl:19 [inlined] [10] (::HTTP.HeadersRequest.var"#defaultheaders#2"{…})(req::HTTP.Messages.Request; iofunction::Nothing, decompress::Nothing, basicauth::Bool, detect_content_type::Bool, canonicalize_headers::Bool, kw::@Kwargs{…}) @ HTTP.HeadersRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/HeadersRequest.jl:71 [11] defaultheaders @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/HeadersRequest.jl:14 [inlined] [12] (::HTTP.RedirectRequest.var"#redirects#3"{…})(req::HTTP.Messages.Request; redirect::Bool, redirect_limit::Int64, redirect_method::Nothing, forwardheaders::Bool, response_stream::Base.BufferStream, kw::@Kwargs{…}) @ HTTP.RedirectRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/RedirectRequest.jl:17 [13] redirects @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/RedirectRequest.jl:14 [inlined] [14] (::HTTP.MessageRequest.var"#makerequest#3"{…})(method::String, url::URIs.URI, headers::Vector{…}, body::String; copyheaders::Bool, response_stream::Base.BufferStream, http_version::HTTP.Strings.HTTPVersion, verbose::Int64, kw::@Kwargs{…}) @ HTTP.MessageRequest ~/.julia/packages/HTTP/sJD5V/src/clientlayers/MessageRequest.jl:35 [15] makerequest @ ~/.julia/packages/HTTP/sJD5V/src/clientlayers/MessageRequest.jl:24 [inlined] [16] request(stack::HTTP.MessageRequest.var"#makerequest#3"{…}, method::String, url::URIs.URI, h::Vector{…}, b::String, q::Nothing; headers::Vector{…}, body::String, query::Nothing, kw::@Kwargs{…}) @ HTTP ~/.julia/packages/HTTP/sJD5V/src/HTTP.jl:457 [17] #request#20 @ ~/.julia/packages/HTTP/sJD5V/src/HTTP.jl:315 [inlined] [18] macro expansion @ ~/.julia/packages/Mocking/U3Rvo/src/mock.jl:26 [inlined] [19] (::AWS.var"#48#50"{Request, OrderedCollections.LittleDict{Symbol, Any, Vector{Symbol}, Vector{Any}}})() @ AWS ~/.julia/packages/AWS/cVXvB/src/utilities/request.jl:225 [20] (::Base.var"#96#98"{Base.var"#96#97#99"{…}})(; kwargs::@Kwargs{}) @ Base ./error.jl:296 [21] (::Base.var"#96#98"{Base.var"#96#97#99"{AWS.AWSExponentialBackoff, AWS.var"#49#51", AWS.var"#48#50"{…}}})() @ Base ./error.jl:291 [22] _http_request(http_backend::AWS.HTTPBackend, request::Request, response_stream::IOBuffer) @ AWS ~/.julia/packages/AWS/cVXvB/src/utilities/request.jl:250 [23] macro expansion @ ~/.julia/packages/Mocking/U3Rvo/src/mock.jl:26 [inlined] [24] (::AWS.var"#41#44"{GoAWSConfig, Request, IOBuffer, Vector{Int64}})() @ AWS ~/.julia/packages/AWS/cVXvB/src/utilities/request.jl:134 [25] (::AWS.var"#42#46"{AWS.var"#41#44"{GoAWSConfig, Request, IOBuffer, Vector{Int64}}, IOBuffer})() @ AWS ~/.julia/packages/AWS/cVXvB/src/utilities/request.jl:149 [26] (::Base.var"#96#98"{Base.var"#96#97#99"{…}})(; kwargs::@Kwargs{}) @ Base ./error.jl:296 [27] (::Base.var"#96#98"{Base.var"#96#97#99"{AWS.AWSExponentialBackoff, AWS.var"#43#47"{…}, AWS.var"#42#46"{…}}})() @ Base ./error.jl:291 [28] submit_request(aws::GoAWSConfig, request::Request; return_headers::Nothing) @ AWS ~/.julia/packages/AWS/cVXvB/src/utilities/request.jl:200 [29] (::JSONService)(operation::String, args::Dict{String, Any}; aws_config::GoAWSConfig, feature_set::AWS.FeatureSet) @ AWS ~/.julia/packages/AWS/cVXvB/src/AWS.jl:379 [30] JSONService @ ~/.julia/packages/AWS/cVXvB/src/AWS.jl:356 [inlined] [31] #create_queue#9 @ ~/.julia/packages/AWS/cVXvB/src/services/sqs.jl:399 [inlined] [32] top-level scope @ REPL[6]:1 Some type information was truncated. Use `show(err)` to see complete types.
The text was updated successfully, but these errors were encountered:
Also see:
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
MWE
The text was updated successfully, but these errors were encountered: