Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

port number swallowed by Route(template, defaults), yielding 12029 from IE9 #942

Closed
@yeswaydude

Description

@yeswaydude

I finally tracked down why my AJAX service wasn't working. The debuggers in IE9 and Firefox kept saying that my request had been aborted. At least IE9 showed an xhr.status of 12029, giving a nebulous indication that something was wrong with the network.

While debugging through the code, I noticed that my HTTP port number (which follows the server, separated by a colon) was getting removed from my URL (http://localhost:88/...).

I tracked it to function Route(template, defaults) and its search for URL parameters via regular expression. Apparently, 88 also gets encoded to an empty string (or some non-printable character?).

In case anyone else runs into this and needs a workaround, I was simply able to drop the prefix from my URL and allow the relative URL mechanism to take over. For example, http://localhost:88/a/b/c --> /a/b/c.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions