Skip to content

fix: Add x-formulus-version header to all API requests#421

Merged
Bahati308 merged 4 commits intodevfrom
fix/add-x-formulus-version-header
Mar 4, 2026
Merged

fix: Add x-formulus-version header to all API requests#421
Bahati308 merged 4 commits intodevfrom
fix/add-x-formulus-version-header

Conversation

@Mishael-2584
Copy link
Contributor

Description

This PR fixes the issue where the CLI fails with 426 errors when connecting to servers that require the x-formulus-version header.

Changes

  • Added x-formulus-version header to Login function in auth.go
  • Added x-formulus-version header to RefreshToken function in auth.go
  • Changed x-api-version to x-formulus-version in doRequest function in client.go
  • Removed DEBUG output line that could leak sensitive data in logs

Testing

  • Tested against demo server (https://misha.synkronus.cloud)
  • Verified login works with the header
  • Verified token refresh works with the header
  • Verified all API requests include the correct header

Related Issues

Fixes the issue where users get "Missing x-formulus-version header" errors when using the CLI with servers that require this header.

- Add x-formulus-version header to Login and RefreshToken functions in auth.go
- Change x-api-version to x-formulus-version in client.go doRequest function
- Remove DEBUG output line that could leak sensitive data
- Fixes issue where servers requiring x-formulus-version header return 426 errors
- Change from '1.24' to '1.24.x' for proper version resolution in GitHub Actions
- The .x suffix ensures latest patch version of Go 1.24 is used
- This ensures covdata tool and other Go tools are properly available
- Go 1.24 exists (released Feb 2025), but needs .x suffix for correct resolution
@Mishael-2584 Mishael-2584 force-pushed the fix/add-x-formulus-version-header branch from eaaebc2 to bd2a53a Compare March 4, 2026 14:43
- Revert to 1.25.x which is proven to work in GitHub Actions
- Go 1.24.x may not be fully available in all GitHub Actions environments yet
- Matches synkronus-cli.yml workflow configuration
- Ensures covdata tool and all Go tools are properly available
- Go 1.24 exists but 1.25.x is more stable in CI environments
@Mishael-2584 Mishael-2584 force-pushed the fix/add-x-formulus-version-header branch from 6b81b6d to 7c1a261 Compare March 4, 2026 14:46
@Bahati308 Bahati308 merged commit 424f88d into dev Mar 4, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants