mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
[GH-ISSUE #1565] Bug: API tokens without an exparation always crash (v0.8.5rc50) #2441
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#2441
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nguyenmp on GitHub (Oct 22, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1565
Originally assigned to: @benmuth on GitHub.
Describe the bug
When trying out the API with a new API token and no expiration (default), it crashes.
Workaround: set an expiration in the distant future or use username/password basic auth.
Steps to reproduce
/admin/api/apitoken/with no expiration (default, just click save)/api/v1/docsScreenshots or log output
ArchiveBox version
@nguyenmp commented on GitHub (Oct 22, 2024):
You probably want something like:
@pirate commented on GitHub (Oct 22, 2024):
Thanks for reporting, and yeah it's an easy fix.