Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P Perun Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Svarog4
  • Perun Core
  • Merge requests
  • !11

Merged
Created Feb 08, 2024 by Kliment Kukoski@k.kukoskiMaintainer

Overall axios interceptor fixes and improvements

  • Overview 0
  • Commits 5
  • Pipelines 5
  • Changes 2
  • The status code of a response is a number, not a string. Now it's handled appropriately.
  • The axios.interceptors.request.use callback is not actually for GET requests (as written before), but for intercepting the actual HTTP requests. Same goes for the axios.interceptors.response.use callback. It's not for POST requests (as written before), but for intercepting the actual responses. The interceptor config for the requests was removed. We don't need it at the moment.
  • Display the request URL for the 302 and 502 statuses.
  • Dispatch the logout action when a response with a status code of 401 is intercepted.
  • Don't intercept the 500 statuses and actually reject the promise as a default scenario for the errors.
Edited Feb 09, 2024 by Tomi Karikj
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: fix/interceptors