# 400 ERROR: "id": "PARAMETER httpClient" message": "must not be null

**URL:** <https://community.sonatype.com/t/400-error-id-parameter-httpclient-message-must-not-be-null/6140>\
**Category:** Sonatype Nexus Repository\
**Tags:** nexus-repository\
**Created:** [March 23, 2021, 11:50am UTC](https://community.sonatype.com/t/400-error-id-parameter-httpclient-message-must-not-be-null/6140 "2021-03-23T11:50:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aleksei.saiko1](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@aleksei.saiko1](https://community.sonatype.com/u/aleksei.saiko1)\
**Post date:** [March 23, 2021, 11:50am UTC](https://community.sonatype.com/t/400-error-id-parameter-httpclient-message-must-not-be-null/6140/1 "2021-03-23T11:50:27Z")

</div>

Hi there!  
I’m trying to create a Nexus maven Proxy repo using Nexus API.  
If I’m using this conf -

```
  "name": "internal",
  "online": true,
  "storage": {
    "blobStoreName": "default",
    "strictContentTypeValidation": true
  },
  "proxy": {
    "remoteUrl": "http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/",
    "contentMaxAge": 1440,
    "metadataMaxAge": 1440
  },
  "negativeCache": {
    "enabled": true,
    "timeToLive": 1440
  },
  "maven": {
    "versionPolicy": "MIXED",
    "layoutPolicy": "STRICT"
  }

```

I’m getting 400 ERROR -

> ```
> "[
> {
> "id": "PARAMETER httpClient",
> "message": "must not be null"
> }
> ]"
> 
> ```

Does it refer to HTTP request setting? But why by creating the same manually , without HTTP request setting, works? I don’t wanna use neither HTTP request setting, or Authentication.

Also, if you’re trying to use the default conf, you will get

> [  
> {  
> “id”: “FIELD password”,  
> “message”: “may not be empty”  
> }  
> ]

That’s obvious if password is empty, but I don’t wanna use it. When creating manually, it works.  
Would be thankful for any help.

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [March 23, 2021, 12:55pm UTC](https://community.sonatype.com/t/400-error-id-parameter-httpclient-message-must-not-be-null/6140/2 "2021-03-23T12:55:06Z")

</div>

Try creating something with the UI and then retrieving it via the REST API to see what the fields should look like.

---

<div class="post-metadata">

**Author:** ![aleksei.saiko1](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@aleksei.saiko1](https://community.sonatype.com/u/aleksei.saiko1)\
**Post date:** [March 23, 2021, 2:35pm UTC](https://community.sonatype.com/t/400-error-id-parameter-httpclient-message-must-not-be-null/6140/3 "2021-03-23T14:35:24Z")

</div>

Yup, apparently it had to be ‘null’.  
Thanks!

Like this -

> {  
> “name”: “internal”,  
> “online”: true,  
> “storage”: {  
> “blobStoreName”: “default”,  
> “strictContentTypeValidation”: true  
> },  
> “cleanup”: {  
> “policyNames”: [  
> “string”  
> ]  
> },  
> “proxy”: {  
> “remoteUrl”: “[https://remote.repository.com](https://remote.repository.com)”,  
> “contentMaxAge”: 1440,  
> “metadataMaxAge”: 1440  
> },  
> “negativeCache”: {  
> “enabled”: true,  
> “timeToLive”: 1440  
> },  
> “httpClient”: {  
> “blocked”: false,  
> “autoBlock”: true,  
> “connection”: {  
> “retries”: 0,  
> “userAgentSuffix”: “string”,  
> “timeout”: 60,  
> “enableCircularRedirects”: false,  
> “enableCookies”: false  
> },  
> “authentication”: null  
> },  
> “routingRule”: “null”,  
> “maven”: {  
> “versionPolicy”: “MIXED”,  
> “layoutPolicy”: “STRICT”  
> }  
> }
