ID:1875717
 
BYOND Version:508
Operating System:Linux
Web Browser:Chrome 40.0.2214.111
Applies to:Dream Daemon
Status: Open

Issue hasn't been assigned a status value.
Tested in BYOND 507.1284 and 508.1289 on Ubuntu 14.04.

Descriptive Problem Summary: world.Export() produces "BUG:" output if there is any form of error connecting.

Numbered Steps to Reproduce Problem: Run any of the world.Export() calls below

Code Snippet (if applicable) to Reproduce Problem:
// Any of the following:
world.Export("http://thingthatdoesntexist.com") // Non-existent domain
world.Export("http://thing.com:7000000") // Port higher than 65536
world.Export("http://500.1000.999.1200") // Invalid IP
world.Export("http://1.2.3.4.5.6") // Also an invalid IP

This also occurs if the address/port is valid, but a connection cannot be established (e.g. if the server is not running).

The following call produces "Invalid network address in transmission (a://1.1.1.1)" - should probably be something like "unknown/invalid URI scheme a:"
world.Export("a://1.1.1.1")


Expected Results: Dream Daemon would produce a runtime error, or would produce some other form of console output detailing the problem (e.g. "Invalid address 1.2.3.4.5.6")

Actual Results: "BUG: Http error: HTTP server sent no data"

Does the problem occur:
Every time? Or how often? Every time
In other games? Not relevant
In other user accounts? Unknown
On other computers? Unknown

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Unknown
I'm not sure the current behavior counts as a bug since it's delivering an error message, just not a very useful one. But I can try to look into improving on the messages that are there.
IMO an invalid world.Export() call should cause a runtime error, not 'BUG' output in the console.
In response to GinjaNinja32
GinjaNinja32 wrote:
IMO an invalid world.Export() call should cause a runtime error, not 'BUG' output in the console.

I agree. That would make a lot more sense, especially with try/catch available now. I'll put this on my list.