Skip to content

Condition is always false #8

@mmnosek

Description

@mmnosek

Steps to reproduce

  1. Run Starcounter Images app (latest develop)
  2. Go to `localhost:8080/Images
  3. Try to upload new image

Expected result

Image is uploaded successfully and websocket is closed

Actual result

Image is uploaded successfully (almost always) but websocket is never closed

Screenshot

images_and_windows_10

I've tried to debug and found one issue, but I'm not sure if it will help:
This condition: https://github.com/Starcounter/starcounter-upload/blob/master/starcounter-upload.html#L224 is always false. The reason is that evt.data is a string, not a JSON object. evt.data should be parsed first.

Even without it onclose is always called, so I'm not sure if it will help with this issue.

cc @miyconst @warpech

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions