Skip to content
New issue

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

If server return 304, then redirected to null location error #1512

Closed
alvinlin123 opened this issue Nov 13, 2013 · 4 comments
Closed

If server return 304, then redirected to null location error #1512

alvinlin123 opened this issue Nov 13, 2013 · 4 comments
Assignees
Milestone

Comments

@alvinlin123
Copy link

I am using Gatling (through maven) to test a CDN server. Whenever the CDN server returns 304, I see the following error:

[ERROR] [11/12/2013 18:12:30.603] [GatlingSystem-akka.actor.default-dispatcher-11] [akka://GatlingSystem/user/$j] URI http://localhost:8080/httpd/flicker/5497/10736165575_019600e371.jpg was redirected to null location
java.lang.IllegalArgumentException: URI http://localhost:8080/httpd/flicker/5497/10736165575_019600e371.jpg was redirected to null location
at com.ning.http.util.AsyncHttpProviderUtils.getRedirectUri(AsyncHttpProviderUtils.java:234)
at io.gatling.http.ahc.AsyncHandlerActor.redirect$1(AsyncHandlerActor.scala:135)
at io.gatling.http.ahc.AsyncHandlerActor.io$gatling$http$ahc$AsyncHandlerActor$$processResponse(AsyncHandlerActor.scala:173)
at io.gatling.http.ahc.AsyncHandlerActor$$anonfun$receive$1.applyOrElse(AsyncHandlerActor.scala:55)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:425)
at akka.actor.ActorCell.invoke(ActorCell.scala:386)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:230)
at akka.dispatch.Mailbox.run(Mailbox.scala:212)
at akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(AbstractDispatcher.scala:506)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

@alvinlin123
Copy link
Author

I think this bug is related to:
AsyncHttpClient/async-http-client#391

@slandelle
Copy link
Member

Hi,

Which version do you use?

Stéphane

2013/11/13 alvinlin123 notifications@github.com

I think this bug is related to:
AsyncHttpClient/async-http-client#391AsyncHttpClient/async-http-client#391


Reply to this email directly or view it on GitHubhttps://github.com//issues/1512#issuecomment-28358452
.

@alvinlin123
Copy link
Author

I am using the latest released version 2.0.0-M3a

@ghost ghost assigned slandelle Nov 13, 2013
@slandelle
Copy link
Member

OK.

You're absolutely right, you're hit by this AHC bug (I'm actually the one who fixed it).

Cheers,

Stéphane

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

No branches or pull requests

2 participants