Skip to content

Instantly share code, notes, and snippets.

View shweta0310's full-sized avatar
🎯
Focusing

Shweta Iyer shweta0310

🎯
Focusing
View GitHub Profile
@shweta0310
shweta0310 / azure-devops-yaml-variable-error.md
Last active October 24, 2025 15:59
Azure DevOps YAML Pipeline Error: "Unexpected value 'Value $() is not supported

Azure DevOps YAML Pipeline Error: "Unexpected value 'Value $(environmentNameForNonProdStages) is not supported"

πŸ’‘ Problem

Dynamic variables throwing below error in Azure DevOps YAML pipeline template:

Unexpected value 'Value $(environmentNameForNonProdStages) is not supported. Supported values are Production, PPE, Test'
Object reference not set to an instance of an object.
@shweta0310
shweta0310 / axios-content-type.md
Last active October 24, 2025 11:01
Axios v1.0.0+ – Content-Type Header Changes for GraphQL File Uploads

Axios v1.0.0+ Content-Type Header Changes for GraphQL File Uploads

The Breaking Change

Axios v1.0.0 introduced automatic Content-Type detection, but with an important caveat:

  • If you set any custom header (like GraphQL's Graphql-Preflight), Axios stops auto-detecting Content-Type and expects you to set it manually.

The Issue: GraphQL File Uploads with Custom Headers

Before (v0.x):