create domain getting 500 status code
Hi @Kireev,
I was trying to create a new domain but is failing with status 500. Here is the request I did and the response I got:
Request failed: {
url: '/books/domain-service/domains/',
method: 'post',
data: '{"publisher":"giannis_org","domain":"new_book","title":"new book","clone_from":"hcupsb"}',
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json',
Authorization: 'Basic Y29rbzpjb2tvYWxsb3dlZA==',
'User-Agent': 'axios/0.19.2',
'Content-Length': 88
},
baseURL: 'https://preview.ncbi.nlm.nih.gov',
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus]
}
Status: 500
Data: {
meta: { status: 'error' },
body: { detail: 'Error creating the domain' }
}
Headers: {
date: 'Wed, 10 Mar 2021 10:26:59 GMT',
server: 'nginx',
'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
'referrer-policy': 'origin-when-cross-origin',
'content-security-policy': 'upgrade-insecure-requests',
allow: 'POST, OPTIONS',
'x-frame-options': 'SAMEORIGIN',
'content-length': '73',
'content-type': 'application/json; charset=utf-8',
vary: 'Accept,Accept-Encoding',
'set-cookie': [
'ncbi_sid=97F915D9048814A3_0425SID; Domain=.nih.gov; expires=Thu, 10 Mar 2022 10:26:59 GMT; Max-Age=31536000; Path=/'
],
'x-ua-compatible': 'IE=Edge',
'x-xss-protection': '1; mode=block',
connection: 'close'
}
Do you know what the problem is?