SShortSingh.
Back to feed

GitLab CLI 401 error may mask an earlier server error, a local test shows

0
·4 views

A GitLab CLI command returning 401 Unauthorized may not reflect the real cause, since an earlier request could have failed with a server error that the client then retried. A local test using a stub for the GitLab Secure Files listing endpoint returned a synthetic 500 on the first request and a synthetic 401 on the second, with no requests sent to a real GitLab instance. Enabling HTTP debug output made the retry visible, showing the 500 followed by the 401. The author notes that a live system can produce the same final 401 for other reasons, and recommends capturing the full HTTP trace from the same checkout and authentication setup. Because HTTP diagnostics can include request and response bodies, the author advises keeping such logs private and checking them for sensitive project data before sharing.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Seven test pages show what sites store before visitors click a cookie banner

A technical check loaded seven test pages in a fresh Chrome profile to see what cookies and storage were set before any consent answer. The pages covered common patterns such as a tracker tag in the head, server session cookies, embedded videos, and banners that ignore a Reject click. Several pages stored identifiers or sent requests to third parties before the visitor responded, while a clean page with the tracker loaded only after Accept stored nothing beyond the consent record. The author notes the test only shows what happens technically, not whether it is legally permitted, which depends on jurisdiction and cookie purpose. The tests were run in November 2026 using a local HTTPS server with made-up hostnames and a Playwright-driven Chrome 156.

0
ProgrammingDEV Community ·

CodAdapt: Experimental Tabular ML Library Trades Accuracy for Speed and Model Size

A developer has released CodAdapt, a personal research project offering an alternative machine learning approach for tabular data, now installable from PyPI. Rather than building decision trees or neural network layers, it encodes features and learns residual contributions through lookup memories across multiple encoding levels. The library mirrors scikit-learn's fit, predict, and score interface and supports binary and multiclass classification, regression, and missing values. In an exploratory benchmark across 14 dataset origins, it trained faster and produced smaller models than CatBoost on one dataset, but CatBoost achieved higher predictive quality. The author stresses these results do not show CodAdapt is generally superior to established algorithms.

0
ProgrammingDEV Community ·

Why a security scan with zero findings still needs a closer look

A blank findings list can mean that every check completed, or that a tool never ran at all, and the two call for different responses. Security Scan Hub, a desktop app, aggregates results from several security tools and records each tool's outcome separately from its findings. The bundled OSV Scanner checks project dependencies for known vulnerabilities, so a clean result only covers the dependencies it examined, not the project's own code or AI agent skills. Other integrations may require separate installation or sign-in, and AI checks are opt-in. The app also pairs findings with their evidence and a recommended next step, and offers a Dependency Map showing relationships in supported npm lockfiles.

0
ProgrammingDEV Community ·

Deterministic Lockstep Simulation with Python and NumPy Uses Fixed-Point Math

The article explains why standard floating-point arithmetic can produce divergent results across CPU architectures, compilers, and operating systems, breaking reproducibility in distributed replays. It proposes deterministic lockstep simulation using integer or fixed-point math, such as 16.16 scaling, to keep instances bit-for-bit identical. A Python example advances entities on a fixed tick clock, sorts entity IDs to avoid dictionary iteration variance, and hashes each state with SHA-256 to detect desynchronization. The sample runs two simulations for 100 ticks and verifies that their state hashes match at every step. The author recommends sorted traversal, fixed-point quantization, and periodic checksum verification as core safeguards.