redstone-dart / redstone

A metadata driven microframework for Dart.
http://redstone-dart.github.io/redstone
MIT License
342 stars 42 forks source link

Uncaught error: Illegal argument(s): scriptName and url cannot both be empty. #41

Closed austincummings closed 9 years ago

austincummings commented 9 years ago
SEVERE: 2014-10-08 17:13:06.362: Uncaught error. Please, report this at https://github.com/luizmineo/redstone.dart - Illegal argument(s): scriptName and url cannot both be empty.

Stacktrace:

package:shelf/src/request.dart 157:7          Request.Request
package:shelf/shelf_io.dart 107:14            _fromHttpRequest
package:shelf/shelf_io.dart 56:38             handleRequest
package:redstone/src/server_impl.dart 162:27  _process.<fn>
dart:async                                    runZoned
package:redstone/src/server_impl.dart 160:11  _process
package:redstone/src/server_impl.dart 153:11  _dispatchRequest
package:redstone/server.dart 406:25           start.<fn>.<fn>.<fn>
dart:isolate                                  _RawReceivePortImpl._handleMessage

I received this error while my server was running, seems to still be up though. Let me know if I can provide any more details.

luizmineo commented 9 years ago

Thanks for reporting this! It seems that a request was considered invalid by shelf. I'll investigate this further and let you know.

austincummings commented 9 years ago

Great, thanks!

luizmineo commented 9 years ago

Redstone.dart v0.5.17 now ignores invalid requests. You can see rejected requests setting the log level to FINE