---
title: My secrets and variables are not injected properly in my job
description: Troubleshoot issues with secrets and environment variables while using Scaleway Serverless Jobs.
tags: serverless jobs troubleshooting issue error image env var environment variables secrets secret manager
dates:
  validation: 2025-11-18
  posted: 2024-11-06
---

## Problem

My environment variables and secrets are not properly injected during my job runs.

## Cause

Environment variables or secrets that are too large, contain carriage returns and spread over several lines, as shown below, will not be injected properly.

```
"hello
world
.
"
```

## Solution

To avoid issues while injecting environment variables and secrets, we recommend encoding them to `base64`.
