Opened 4 years ago

Closed 14 months ago

Last modified 6 weeks ago

#12715 closed bug (fixed)

Web+ won't upload screenshot at HDS site

Reported by: humdinger Owned by: pulkomandy
Priority: normal Milestone: R1/beta2
Component: Applications/WebPositive Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All


This is hrev50173.

Uploading a HVIF icon at the Haiku Depot Server works, but uploading screenshots doesn't. Andrew had a look at the HDS log:

It looks like the client (WebPositive?) may not be sending material to
the server in a reasonable time-frame? java.util.concurrent.TimeoutException: Idle timeout
expired: 30001/30000 ms

Uploading with QupZilla works.

Change History (6)

comment:1 by pulkomandy, 4 years ago

Is this still a problem with HaikuWebKit 1.5.3?

comment:2 by humdinger, 4 years ago

Andrew would have to look if anything has changed in the log. Uploading a screenshot hasn't changed from my point of view. The screen still greys out and remains so, nothing gets uploaded. When clicking the reload button of Web+ after a while, I see this in Terminal:

SSL error:00000005:lib(0):func(0):DH lib
MESSAGE unable to add the screenshot for; armyknife
MESSAGE reset the breadcrumb stack

comment:3 by apl-haiku, 3 years ago

I've just checked and this problem is unfortunately still happening. I have run the application server (HDS) on another host locally without a reverse-proxy in place. It _seems_ that Web+ is simply blocking when it does the POST with the payload. The timeout noted above is not relevant as this is most likely the Apache load-balancer timing out the request.

The place in the JS code where the problem is happening is;

return $http({
  cache: false,
  method: 'POST',
  url: '/' + SEGMENT_SCREENSHOT + '/''/add?format=png',
  headers: _.extend(
    { 'Content-Type' : 'image/png' },
  data: screenshotFile

The data is a JS File ( object. The logic is in the file "pkgscreenshotservice.js". If anybody wants to hit HDS without getting minified JS files back then I can make that happen for a period of time.

Also note that a python script has been added to the HDS repo in order to upload screenshots. This is a work-around until this can be investigated.

Last edited 3 years ago by apl-haiku (previous) (diff)

comment:4 by humdinger, 2 years ago

Still not possible to upload screenshots with haikuwebkit 1.6.4.

comment:5 by humdinger, 14 months ago

Resolution: fixed
Status: newclosed

Fixed with haikuwebkit 1.6.9 or an updated HDS... :) Thanks!

comment:6 by nielx, 6 weeks ago

Milestone: UnscheduledR1/beta2

Assign tickets with status=closed and resolution=fixed within the R1/beta2 development window to the R1/beta2 Milestone

Note: See TracTickets for help on using tickets.