You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by "dorbae (via GitHub)" <gi...@apache.org> on 2024/09/07 03:07:34 UTC

[I] whisks.v2.1.0/packages-public view function logs 'new TypeError("doc.binding is not an object", "undefined", 3)' [openwhisk]

dorbae opened a new issue, #5507:
URL: https://github.com/apache/openwhisk/issues/5507

   <!--
   We use the issue tracker for bugs and feature requests. For general questions and discussion please use https://openwhisk.apache.org/slack.html or https://openwhisk.apache.org/community.html instead.
   
   Do NOT share passwords, credentials or other confidential information.
   
   Before creating a new issue, please check if there is one already open that
   fits the defect you are reporting.
   If you open an issue and realize later it is a duplicate of a pre-existing
   open issue, please close yours and add a comment to the other.
   
   Issues can be created for either defects or enhancement requests. If you are a committer than please add the labels "bug" or "feature". If you are not a committer please make clear in the comments which one it is, so that committers can add these labels later.
   
   If you are reporting a defect, please edit the issue description to include the
   information shown below.
   
   If you are reporting an enhancement request, please include information on what you are trying to achieve and why that enhancement would help you.
   
   For more information about reporting issues, see
   https://github.com/apache/openwhisk/blob/master/CONTRIBUTING.md#raising-issues
   
   Use the commands below to provide key information from your environment:
   You do not have to include this information if this is a feature request.
   -->
   
   ## Environment details:
   
   * local deployment / ubuntu
   * couchdb 2.3.1 and 3.3.3
   
   ## Steps to reproduce the issue:
   
   You can find this log when whisk.v2.1.0/packages-public view re-build index. In my case, I reproduce it on Web Console followed by below steps.
   
   1.  Upsert entity docs(action or trigger) on whisk entity db.
   
   2. Click 'Save Document and then Build Index' button. 
   
   <img src="https://github.com/user-attachments/assets/5e5ae23d-fe76-4146-88b2-b7c56c86ba39" width="600" />
   
   3. Check CouchDB container logs
   ```
   docker logs -f <YOUR_CONTAINER_NAME> 2>&1 | grep -i "os process"
   ```
      
   ## Provide the expected results and outputs:
   
   ```
   There is no exception log.
   ```
   
   
   ## Provide the actual results and outputs:
   
   ```sh
   dorbae@dorbae-ubuntu:~$ docker logs -f whisk-couch 2>&1 | grep -i "os process"
   
   [info] 2024-09-07T02:25:38.312234Z nonode@nohost <0.1292.0> -------- OS Process #Port<0.8249> Log :: function raised exception (new TypeError("doc.binding is not an object", "undefined", 3)) with doc._id whisk.system/user25868/TEST
   [info] 2024-09-07T02:25:38.321479Z nonode@nohost <0.11150.0> -------- OS Process #Port<0.8738> Log :: function raised exception (new TypeError("doc.binding is not an object", "undefined", 3)) with doc._id whisk.system/playground-userpackage
   [info] 2024-09-07T02:25:38.321606Z nonode@nohost <0.11148.0> -------- OS Process #Port<0.8737> Log :: function raised exception (new TypeError("doc.binding is not an object", "undefined", 3)) with doc._id whisk.system/playground-run
   [info] 2024-09-07T02:25:38.321991Z nonode@nohost <0.11150.0> -------- OS Process #Port<0.8738> Log :: function raised exception (new TypeError("doc.binding is not an object", "undefined", 3)) with doc._id whisk.system/playground-fetch
   [info] 2024-09-07T02:25:38.322312Z nonode@nohost <0.11150.0> -------- OS Process #Port<0.8738> Log :: function raised exception (new TypeError("doc.binding is not an object", "undefined", 3)) with doc._id whisk.system/playground-delete
   ```
   
   ## Additional information you deem important:
   
   I reproduced the error on standalone environment and  local machine and the version of CouchDB was 2.3.1. And also, I found it on my product environment with 3.3.3 version.
   
   This issue occurs when execute view function since action and trigger entities have no 'binding' field on their doc. It doesn't affect the creation of the index. 
   
   Nevertheless, I think it's better to fix this function. This is because CouchDB makes unnecessary logs whenever entities are updated. 
   
   It can be fixed by modifying `isPublicPackackage` function and I already tested it. I would like to contribute if I have a chance. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] whisks.v2.1.0/packages-public view function logs 'new TypeError("doc.binding is not an object", "undefined", 3)' [openwhisk]

Posted by "dorbae (via GitHub)" <gi...@apache.org>.
dorbae closed issue #5507: whisks.v2.1.0/packages-public view function logs 'new TypeError("doc.binding is not an object", "undefined", 3)'
URL: https://github.com/apache/openwhisk/issues/5507


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org