plutoless / eEducation

e-education solutions(Agora Reference Design)
184 stars 124 forks source link

Files uploaded not showing on whiteboard #166

Closed suretrust closed 4 years ago

suretrust commented 4 years ago

After following the instructions here to add my OSS details, I am having 2 issues.

  1. Files uploaded to whiteboard are not showing properly, it is displaying as the image below. Those rectangles are actually images uploaded.
Screenshot 2020-06-29 at 18 03 29
  1. When I tried to record I am getting an error as in the image attached below:
Screenshot 2020-06-29 at 18 06 28

Could anyone kindly point me in the right direction?

srs888001 commented 4 years ago
  1. Is there any error message? Are all pictures not displayed properly? Can you provide us with a picture?
  2. It seems that you have not turned on cloud recording. Maybe you can refer to https://docs.agora.io/en/cloud-recording/cloud_recording_rest?platform=All%20Platforms#enable-cloud-recording
suretrust commented 4 years ago

Thanks for your response @srs888001, 💯

  1. There are some errors in the console, please see the image attached. Also, this happens for any type of file I try to upload: PPT, PDF, JPG, etc
Screenshot 2020-06-30 at 04 21 26
  1. Thanks so much, now recording, one more thing though, I checked the Alibaba bucket folder and didn't find any recording, how do I locate the recording or play it?
Matrixbirds commented 4 years ago

Sorry, for lately reply. @suretrust

For question 1. It looks like OSS network error, you can find more details here. Network-Error
For question 2. Our education service not support record to specified OSS storage, If you need recording service, we recommend to use your own service and integrate the agora cloud recording the into your backend server. You can find agora recording services documentation.

suretrust commented 4 years ago

Thanks for the response @Matrixbirds, 👋

For question 1: I just checked the network-error suggestions and they are all already in the code since I'm using the code here. I also activated the acceleration-based access but I am still having the same error.

BTW, does REACT_APP_AGORA_RTM_ENDPOINT: 'your_server_rtm_endpoint_api' have anything to do with this file upload? That seems to be the only variable I didn't set in the .env.local file.

suretrust commented 4 years ago

Hi @srs888001 and @Matrixbirds, 👋

Thanks so much for helping me with this. I finally got it to work, it was partly because I didn't set the Exposed Headers as shown in the image below:

Screenshot 2020-07-01 at 10 09 27

One more question though, when I upload a file that's not image, there is this conversion that fails with 403 error, could you point me in the right direction?

Screenshot 2020-07-01 at 10 12 11
suretrust commented 4 years ago

Figured it out, it was because the services listed in the image below were disabled. Thanks, guys, you rock!

Screenshot 2020-07-01 at 15 01 06