E_INTERNAL_SERVER_ERROR

I am getting this error when i am hitting the documentum API."{
"status": 401,
"code": "E_INTERNAL_SERVER_ERROR",
"message": "An internal server error occurs.",
"details": "Authentication failed.",
"id": "10e67371-7cde-4ab5-b961-b8f8f1d5c07d"
}"
I know this is because of fail authentication but which auth credentials i have to pass .

Comments

  • What are the product and version?
    If it related to Documentum REST, I suspect you should pass docbase user credentials. Please consult with documentation, it should contain required information.
    Make sure user exist and active in DCTM docbase.

    MEOW

  • Can you share the link of documentum content server installation with postgres sql for windows ? I am getting error while creating repositories.

  • Its not given in these documents.I am trying to run this API "http://localhost:8080/dctm-rest/repositories/repo" in postman . What authentication credentials i need to pass.

  • Did you look in the Administration and Configuration guide?
    If you are trying to connect to repository, you just need to pass in any valid user credential. If you haven't configured LDAP yet, then your install owner credentials should work.

  • Hi,
    Documentum Platform REST Services supports different authentication types. You can start from basic authentication. Refer to Documentum REST Dev guide: https://knowledge.opentext.com/knowledge/llisapi.dll/Open/72207163

    MEOW

  • Hi ,
    I have tried with all the credential like global repo username password , db owner user name password , repo owner name password but its showing same error for everyone

  • [Administrative: duplicate thread https://forums.opentext.com/forums/discussion/230918/ now closed.]

    Martin van Rappard
    Technical Support Engineer III
    OpenText

  • Hi,

    I tried basic auth with ootb dctm-rest service (without any modification) as described in documentation. I just set dfc.properties values and deployed dctm-resp app on tomcat.
    I used following python3 script to call dctm-rest service:

    DCTMRESTtest.py:

    import urllib.request,urllib.response,urllib.parse
    import base64
    import json
    
    # Documentum_Platform_REST_Services_16.4_Development_Guide Example 5-1. Username/password Pair for dmadmin/password
    # GET /${resource-url} HTTP/1.1
    # Authorization: Basic ZG1hZG1pbjpwYXNzd29yZA==
    # Authorization: Basic BASE64{${username}:${password}}
    
    ulr=urllib.request
    
    user="dmadmin"
    password="P1$$w0rd"
    creds=user+":"+password
    authHeader=str(base64.b64encode(bytes(creds, encoding="utf-8")).decode('utf-8'))
    print("Getting reository resource...")
    url="http://myserver:8080/dctm-rest/repositories/myrepository"
    
    
    headers={
    'Content-Type': 'application/hal+json;charset=UTF-8',
    'Authorization': 'Basic '+authHeader,
    'Accept': 'application/json'
    }
    data=None
    req=ulr.Request(url,data,headers)
    f = urllib.request.urlopen(req)
    apps_json=json.loads(f.read().decode('utf-8'))
    print(apps_json)
    

    MEOW