AviH0 / DigmiXport

A Web Extension that allows exporting an ICal calendar from HUJI Digmi.
0 stars 0 forks source link

issues exporting the calendar #6

Open Dariya-Prilutskiy opened 4 years ago

Dariya-Prilutskiy commented 4 years ago

I had a few issues trying to create a calendar. At first I would be able to create a new calendar but could not save the timetable there. Today I tried exporting the calendar again with no success. I created a new calendar which made chrome freeze this time, buti it still created it (I see the its name in my account). Then I tried saving the file to the calendar I created. I got a message that the export was successful but Chrome froze again and I cannot see the timetable in my calendar.

AviH0 commented 4 years ago

Hi Dariya, In order for me to recreate your bug, I will need to know the exact time-table you built. This is quite easy to do: using the Digmi interface, you can save your time-table (there is a button on the bottom of the page). After saving the time-table, you then need to load it by clicking on the button that will appear. Confirm that you want to load the saved table, and after it loads, copy the link that is now in chrome's url field and paste it here. Hopefully I will manage to identify the problem and fix it. FYI, there currently is known bug with courses that don't have exams at all - they will cause the addon to fail if you try to export exam events.

Dariya-Prilutskiy commented 4 years ago

There you go - https://www.digmi.org/huji/?%7B%2267101%22%3A%7B%22%u05E9%u05E2%u05D5%u05E8%22%3A1%2C%22%u05EA%u05E8%u05D2%22%3A13%2C%22%u05DE%u05E2%u05D1%22%3A31%7D%2C%2280430%22%3A%7B%22%u05E9%u05E2%u05D5%u05E8%22%3A0%2C%22%u05EA%u05E8%u05D2%22%3A8%7D%2C%2283325%22%3A%7B%22%u05E9%u05E2%u05D5%u05E8%22%3A0%2C%22%u05EA%u05E8%u05D2%22%3A2%7D%2C%2283335%22%3A%7B%22%u05E9%u05E2%u05D5%u05E8%22%3A0%2C%22%u05EA%u05E8%u05D2%22%3A2%7D%7D

AviH0 commented 4 years ago

I'm not managing to reproduce the issue. Could you go to 3rd party app permission in your google account settings ( https://myaccount.google.com/permissions?utm_source=google-account&utm_medium=web ) and ensure that you see something similar to the following image? image

Dariya-Prilutskiy commented 4 years ago

It does have permission. I tried again, this time with the exams box checked, and I got the following message:

Please note: some of the exams' hours have not... (the rest got cut and chrome froze)

So I guess it could be related to the exams issue, though I have friends with the same courses that imported the calendar events with no problems.

AviH0 commented 4 years ago

If the issue happens when the exam checkbox is not checked then the issue is definitely not related to the exam issue. The fact that other people (including me) are able to export the exact same calendar leads me to think that the issue is related to a specific configuration in your browser, internet connection, or google account. I will implement a logging feature that will allow you to collect info about the issue when it happens and send that info to me so that I will be able to figure out the reason for this issue. I will let you know when that feature becomes available.

AviH0 commented 4 years ago

I have (hopefully) implemented a simple logging feature. If you can, please update the addon (make sure you then have version 1.5.5 installed), and then when you try to export to google, hopefully your browser will not freeze or crash and you will be provided a log file that you can then upload to here.

Dariya-Prilutskiy commented 4 years ago

I updated the version and tried again. When I tried exporting the lesson events only I got the regular message that it was successful and chrome froze. I checked my calendar and I still could not see the events. I also tried exporting with the exam events. I got the message "Please note: some of the exams' hours have not...". By the way, I managed to create a new calendar through the addon, so I don't think it's a permissions problem.

AviH0 commented 4 years ago

That does seem to narrow down the possibilities a little bit, but I'm still unsure what is happening. Perhaps you can find some helpful information in the console. If you press ctrl shift I in chrome you will open the developer tools pane, where you can find the console. If you then try exporting the calendar, you might be able to find some helpful error message in there. I think perhaps chrome is blocking requests to the Google API for some reason.

Dariya-Prilutskiy commented 4 years ago

There are a few errors that I see. None seem to be related to the problem though. Here are printscreens of the console anyway. Before I try to export: image

This is what I see after I try to export: image

AviH0 commented 4 years ago

I made some changes that I think may resolve your issue. Could you update to version 1.5.6 and let me know if it works?

Dariya-Prilutskiy commented 4 years ago

The addon did manage to create a calendar and export to it, but unfortunately chrome still freezes.

AviH0 commented 4 years ago

That's unfortunate, but at least we're on the right track. Do you at any point see a message saying the events were exported successfully?I'm assuming you've seen the message on the export button asking the user to wait... Have you tried waiting for chrome to unfreeze? If so, how long did you wait?