Our pure JavaScript Scheduler component


Post by xnasav »

Hey there,

we sometimes get exports where it seems like CSS isn't loaded properly. All the orders and dependencies are then missing and the resources are just text. I attached an example PDF. This error happens in multiple Browsers and we aren't able to reliably reproduce it.

Some requests also send bodies like this

{"0x[]": "androxgh0st"}

causing a "No html fragments found" error in the exporter and cancelling the export.

We are using the following package versions
"@bryntum/schedulerpro": "5.2.3"
"@bryntum/schedulerpro-vue-3": "5.2.3".

Attachments
broken.pdf
(310.29 KiB) Downloaded 43 times

Post by marcio »

Hello xnasav,

Thanks for the report. Are you able to share a sample project with your configuration and some fake data where you can (at least one time) reproduce the behavior that you're describing?? With that would be a lot easier to debug and find what's causing that strange behavior.

Best regards,
Márcio


Post by xnasav »

Attached is another invalid PDF.
The format is A4 in landscape with the time range being 13th of November to 16th of January.
Below is our configuration

    barMargin: ScheduleConstants.MARGIN.BAR,
    columns: getColumns(store, i18n, router, loggingService),
    createEventOnDblClick: false,
    dependencyStore,
    deselectOnClick: false,
    destroyStores: true,
    displaySchedulingIssueResolutionPopup: false,
    enableDeleteKey: false,
    enableEventAnimations: false,
    eventLayout: {
      type: 'stack',
    },
    eventRenderer: getEventRenderer(store),
    eventStore: new EventStore({
      modelClass: CustomEventModel,
      listeners: getEventStoreListeners(store),
    }),
    fullRowRefresh: false,
    listeners: getScheduleListeners(store, schedulePopupStore, i18n, loggingService),
    multiEventSelect: true,
    preserveScrollOnDatasetChange: true,
    presets,
    project: {
      enableProgressNotifications: false,
    },
    projectProgressReporting: null,
    resourceMargin: ScheduleConstants.MARGIN.RESOURCE,
    resourceStore: new ResourceStore({
      modelClass: CustomResourceModel,
      listeners: getResourceStoreListeners(store, loggingService),
    }),
    rowHeight: ScheduleConstants.ROW_HEIGHT,
    selectionMode: {
      row: true,
      cell: false,
    },
    snapRelativeToEventStartDate: true,
    timeRangeStore: new RecurringResourceTimeRangeStore(),
    useInitialAnimation: false,
    viewPreset: initialPreset,
    visibleDate: { date: initialDate, block: 'center' },
    zoomKeepsOriginalTimespan: true,
    zoomOnMouseWheel: false,
Attachments
Bildschirmfoto 2022-12-02 um 11.16.43.png
Bildschirmfoto 2022-12-02 um 11.16.43.png (117.34 KiB) Viewed 451 times
Tims testprojekt_12-2-2022-1.pdf
(80.81 KiB) Downloaded 38 times

Post by Maxim Gorkovsky »

It is difficult to tell what is wrong based on the provided information.

Some requests also send bodies like this

{"0x[]": "androxgh0st"}

Outgoing request is supposed to be a JSON with multiple keys including html, orientation etc. I cannot even speculate how it ended up being just one obfuscated key. You can check receiveExportContent function which builds the body of the request.

Speaking of wrong looking PDF, I suggest trying these two things:

  1. Check export server logs, looking for errors loading resources. If you see any issues, please check out guide in this repo, it should help understanding possible problem: https://github.com/bryntum/pdf-export-server
  2. Check html in the request, save it to a local file, open file in the browser.

Post Reply