400 error code converting Pdf to xml

it’s showing this /tmp/Zhzndvxxx and it does not exit. What kind of server configuration?

@yulianto8327
Can you download file Profileen.xml from aspose.cloud dashboard directly?

Please specify:

  1. The operating system version;
  2. PHP version;
  3. Client cloud sdk version;
  4. Run the script <?php echo exec('whoami'); ?> and check that the user has permission to write to the directory specified in the sys_temp_dir variable in the php.ini configuration file.

1,2 here’s the information Imgur: The magic of the Internet Imgur: The magic of the Internet
3. 24.8
4. yes, I have permission to write tmp folder

@yulianto8327

Can you download file Profileen.xml from aspose.cloud dashboard directly?
What is the version of the operating system?

Can you download file Profileen.xml from aspose.cloud dashboard directly? → Yes
What is the version of the operating system? → Imgur: The magic of the Internet

@yulianto8327
sample.zip (35.7 KB)

To run sample project please install devcontainers from:
GitHub - devcontainers/cli: A reference implementation for the specification that can create and configure a dev container from a devcontainer.json..

Run command from project folder (replace command arguments YOUR_APP_SID YOUR_APP_KEY):

devcontainer up --remove-existing-container --log-level trace --remote-env AppSid=YOUR_APP_SID --remote-env AppKey=YOUR_APP_KEY --workspace-folder .

After command executed you will see:

  1. In output: “Downloaded (Profileen.xml)”

  2. File Profileen.xml present in project folder

If any errors occur, please send the output of this command.

If everything ok, you can run sample.php from terminal (change AppSid, AppKey in sample.php):

php sample.php

I’m getting this error https://imgur.com/a/ew6FR33

@yulianto8327
You should run docker as well to run devcontainer
GitHub - docker/docker-install: Docker installation script

Turns out our server does not support docker.

@yulianto8327

You can run devcontainer on any other machine, the container is configured to use the operating system and the php version that you specified. When debugging, you can more accurately identify the section of code where the problem occurs. Also you can run the script manually on the server, specify the variables YOUR_APP_SID, YOUR_APP_KEY to your values.

php sample.php