SmartDocs Services - Create Model

Not applicable

Has anyone come across this issue? I am using services (https://github.com/yuriylesyuk/smartdocs-services) to create a model as follows:

Post to Path: devportal/smartdocs/

Body:

{
"name": "ghi",
"displayName": "jkl",
"description": "1"
}

This call eventually results in an HTTP/ 500 error. When I look in the taxonomy_term_data table in the database there are 1242 entries for the name 'ghi'. This seems to happen consistently using the API.

There are no outstanding issues on the github page where we got the module from.

0 7 428
7 REPLIES 7

Hi @mark.ferguson

We've had success using https://github.com/apigeecs/smartdocs_service module for the same purpose. I'm not sure what the differences are between the 2 modules, but they don't seem to be forks of each other.

@Karl Scheirer thanks for the pointer. We were pointed at the one in my original post by our Apigee consultant.

I've tried with the other version of smartdocs_service now and get the same behaviour when adding a model.

My understanding is that a smartdocs model is added as a taxonomy term using the Drupal taxonomy module. My other assumption is that 1242 is just the number of entries the code is able to add before an HTTP timeout kicks in.

Does anyone know which log files I could be looking at to find out what is going on here?

@mark.ferguson Wait, you're saying that a single API call resulted in 1242 rows being added to the taxonomy term table? That does seem like a problem!

If you're hosted on pantheon you can download logs via sftp: https://pantheon.io/docs/logs/.

Your understanding is correct. My next step would be parsing those logs looking for the source of the 500 error. Also check Recent Log Messages in your devportal, that may have useful information.

Correct. It is consistently 1242 rows I assume that is just how many it can do before the 500 happens.

We are on Acquia so I haven't quite found out how to track things down in the logs over there.

Hi Mark, does this documentation help for getting logs from Acquia? It looks like there are several ways to go about it. https://docs.acquia.com/acquia-cloud/monitor/logs#download

Thanks, I've been logged in with live dev switched on. I still haven't found which logs (if any) the relevant messages are in.

Generally apache/nginx or php error logs