Giter VIP home page Giter VIP logo

chiayi-university-system-api's Introduction

Hi there 👋. This is tony11306's github

Recent posts in my blog

嘉大選課輔助器


前言
原本嘉義大學選課只有給你一大串的課程,課程類型要一直回上一個來修改,課程上面有所有需要知道的內容,雖然內容十分充足,但

前言


在爬蟲的世界中,你是需要在網路的世界遊走的,那你就要知道一些江湖的規則...痾我是說背後的傳輸方式。而在你看到這龐大的網路世界中,在網路

前言



在第一篇有提到,爬蟲是指可以在網路上抓取資料的程式,不過有些時候網頁製作者已經給你整理好的資料了,專門提供給別人用的,如果再自己慢慢觀

前言

前言

chiayi-university-system-api's People

Contributors

tony11306 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

chiayi-university-system-api's Issues

500 Internal Server Error

課表產生器和選課輔助器現在會產生錯誤

測試過在自己的電腦上run api,修改課表產生器的URL後按生成

然後flask server跳出這個錯誤,但校務行政系統沒掛掉

415 Unsupported Media Type: Did not attempt to load JSON data because the request Content-Type was not 'application/json'.
[2023-05-01 06:08:55,917] ERROR in app: Exception on /login [POST]
Traceback (most recent call last):
  File "c:\Users\jones\OneDrive\桌面\Chiayi-university-system-api-main\SchoolSystemModel\decorators.py", line 11, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\jones\OneDrive\桌面\Chiayi-university-system-api-main\SchoolSystemModel\login.py", line 52, in post
    args = self.reqparse_args.parse_args()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask_restful\reqparse.py", line 328, in parse_args
    value, found = arg.parse(req, self.bundle_errors)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask_restful\reqparse.py", line 184, in parse
    source = self.source(request)
             ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask_restful\reqparse.py", line 125, in source
    value = getattr(request, l, None)
            ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\werkzeug\wrappers\request.py", line 565, in json
    return self.get_json()
           ^^^^^^^^^^^^^^^
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\werkzeug\wrappers\request.py", line 611, in get_json
    return self.on_json_loading_failed(None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\wrappers.py", line 130, in on_json_loading_failed
    return super().on_json_loading_failed(e)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\werkzeug\wrappers\request.py", line 654, in on_json_loading_failed
    raise UnsupportedMediaType(
werkzeug.exceptions.UnsupportedMediaType: 415 Unsupported Media Type: Did not attempt to load JSON data because the request Content-Type was not 'application/json'.  

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)       
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^       
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask_restful\__init__.py", line 467, in wrapper
    resp = resource(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\views.py", line 109, in view
    return current_app.ensure_sync(self.dispatch_request)(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask_restful\__init__.py", line 582, in dispatch_request
    resp = meth(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\jones\OneDrive\桌面\Chiayi-university-system-api-main\SchoolSystemModel\decorators.py", line 20, in wrapper
    abort(500, {'result': 'unexpected error. It could be school system is under maintaining, or that page is unable to access currently.'})
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\helpers.py", line 277, in abort
    current_app.aborter(code, *args, **kwargs)
  File "C:\Users\jones\AppData\Local\Programs\Python\Python311\Lib\site-packages\werkzeug\exceptions.py", line 861, in __call__
    raise self.mapping[code](*args, **kwargs)
werkzeug.exceptions.InternalServerError: 500 Internal Server Error: {'result': 'unexpected error. It could be school system is under maintaining, or that page is unable to access currently.'}
127.0.0.1 - - [01/May/2023 06:08:55] "POST /login HTTP/1.1" 500 -

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.