Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Deployment] imgur upload error #38

Open
tai271828 opened this issue Jan 26, 2022 · 7 comments
Open

[Deployment] imgur upload error #38

tai271828 opened this issue Jan 26, 2022 · 7 comments
Projects
Milestone

Comments

@tai271828
Copy link

development site 又不能上傳了,這次是透過 domain name 不行、但 IP 可以(之前是相反)

說不定是 imgur 對同一位置的單日上傳上限。

Next action:
Study why the upload error shows up randomly.

@tai271828
Copy link
Author

Hmmm I think we are far from this restriction:

Each application can allow approximately 1,250 uploads per day or approximately 12,500 requests per day. If the daily limit is hit five times in a month, then the app will be blocked for the rest of the month. 

https://api.imgur.com/#:~:text=Each%20application%20can%20allow%20approximately,the%20rest%20of%20the%20month.

@tai271828
Copy link
Author

Interesting, when using the domain, for some reasons It falls back to use localhost:

Failed to load resource: net::ERR_FAILED
:8080/server/api/images:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
imageUpload.ts?ef95:27 Error: Request failed with status code 403
    at createError (webpack-internal:///./node_modules/axios/lib/core/createError.js:16)
    at settle (webpack-internal:///./node_modules/axios/lib/core/settle.js:17)
    at XMLHttpRequest.handleLoad (webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:59)
eval @ imageUpload.ts?ef95:27
:8080/#map=14.00/120.50710867662632/24.107157308511262:1 Access to XMLHttpRequest at 'http://localhost:8080/sockjs-node/info?t=1643213968489' from origin 'http://ohshown.site:8080' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.

@tai271828
Copy link
Author

tai271828 commented Jan 26, 2022

disfactory-backend/backend$ git reset --hard a29dd525bf6ba3bd18498300969c603baa3f7672 and I could still reproduce this issue. It means the recent change of backend does not raise the regression.

@tai271828
Copy link
Author

Another clue (hopefully it is not read herring) is that I noticed the Network status of the frontend is unavailable.

 DONE  Compiled successfully in 12340ms                                            3:40:01 PM                                                                                          [0/433]

No type errors found                           
Version: typescript 3.9.7                      
Time: 7930ms                                   

  App running at:                              
  - Local:   http://localhost:8080/            
  - Network: unavailable 

@tai271828
Copy link
Author

disfactory-backend/backend$ git reset --hard a29dd525bf6ba3bd18498300969c603baa3f7672 and I could still reproduce this issue. It means the recent change of backend does not raise the regression.

Similar to the idea but for fronted, aee08a84d4e2ab43252dedf64af38f6a96db05a0 does not introduce this issue.

@tai271828 tai271828 added this to the alpha milestone Jan 26, 2022
@tai271828
Copy link
Author

Did not reproduce for a while. Re-open when it shows up again.

@tai271828 tai271828 added this to To do in Alpha via automation Feb 23, 2022
@tai271828 tai271828 moved this from To do to Done in Alpha Feb 23, 2022
@tai271828 tai271828 reopened this Mar 15, 2022
Alpha automation moved this from Done to In progress Mar 15, 2022
@tai271828
Copy link
Author

Both the domain name and IP failed to upload images this time! OH-SHOWN/ohshown-frontend#65 (comment)

@tai271828 tai271828 removed this from In progress in Alpha Apr 22, 2022
@tai271828 tai271828 added this to To do in Beta via automation Apr 22, 2022
@tai271828 tai271828 modified the milestones: alpha, beta Apr 22, 2022
@diaoga diaoga removed this from To do in Beta May 24, 2022
@diaoga diaoga added this to To do in Deployment via automation May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant