Hi everyone,
When I tried to Deploy my CAPI program to our CSWEB server, I got an Error: unable to read response from server. See log file for details.
When I checked the log file, I saw these:
2023-04-12 10:59:22,140 INFO: Server API version: 2
2023-04-12 10:59:22,140 INFO: Connection successful. Server id: SERVER ID
2023-04-12 10:59:22,141 INFO: Uploading package PROJECT NAME
2023-04-12 10:59:22,143 INFO: Uploading app package PROJECT NAME 4401347 bytes
2023-04-12 10:59:37,065 ERROR: Invalid server response: Not a string
2023-04-12 10:59:37,065 ERROR: {"code":200,"description":"The application PROJECT NAME was successfully updated."}
2023-04-12 11:00:16,001 ERROR: Error uploading package: Sync error
2023-04-12 11:00:16,001 INFO: Disconnecting from server
How do I fix these error?
Thank you.
Invalid server response: Not a string. code":200"
-
- Posts: 20
- Joined: August 17th, 2022, 11:07 pm
Re: Invalid server response: Not a string. code":200"
can you send us var/logs/api.log file located in the CSWeb sources folder in your web server's root directory?
Re: Invalid server response: Not a string. code":200"
Hello Everyone,
I am trying to deploy my application and an error: Unable to read response from server. See log file for details, popped up. After viewing the log file, I noticed that the same error above appear.
2023-12-26 12:00:51,516 INFO: Uploading package ang_login_form
2023-12-26 12:00:51,516 INFO: Uploading app package ang_login_form 7361386 bytes
2023-12-26 12:00:52,151 ERROR: Invalid server response: Not a string
2023-12-26 12:00:52,151 ERROR: {"code":200,"description":"The application ang_login_form was successfully updated."}
2023-12-26 12:01:04,581 ERROR: Error uploading package: Sync error
2023-12-26 12:01:04,581 INFO: Disconnecting from server
How can I resolve this error?
Many thanks!!!
I am trying to deploy my application and an error: Unable to read response from server. See log file for details, popped up. After viewing the log file, I noticed that the same error above appear.
2023-12-26 12:00:51,516 INFO: Uploading package ang_login_form
2023-12-26 12:00:51,516 INFO: Uploading app package ang_login_form 7361386 bytes
2023-12-26 12:00:52,151 ERROR: Invalid server response: Not a string
2023-12-26 12:00:52,151 ERROR: {"code":200,"description":"The application ang_login_form was successfully updated."}
2023-12-26 12:01:04,581 ERROR: Error uploading package: Sync error
2023-12-26 12:01:04,581 INFO: Disconnecting from server
How can I resolve this error?
Many thanks!!!
Re: Invalid server response: Not a string. code":200"
This query was crossposted to our listserv (please submit your question to one place, preferably here on the forum so others can benefit). Our response there was:
Can you send us the logs from CSWeb located in var/logs folder? Looking at the upload size, it may that your PHP install is not configured to upload larger files. Please take a look at this post to configure PHP for uploading large files.
https://www.drupal.org/docs/7/managing- ... our-phpini