# Missing handler's file name information in the http "init" request?

**URL:** <https://forum.serverless.com/t/missing-handlers-file-name-information-in-the-http-init-request/17594>\
**Category:** Serverless Framework\
**Tags:** openwhisk\
**Created:** [September 9, 2022, 2:08am UTC](https://forum.serverless.com/t/missing-handlers-file-name-information-in-the-http-init-request/17594 "2022-09-09T02:08:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jogi343](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jogi343](https://forum.serverless.com/u/jogi343)\
**Post date:** [September 9, 2022, 2:08am UTC](https://forum.serverless.com/t/missing-handlers-file-name-information-in-the-http-init-request/17594/1 "2022-09-09T02:08:13Z")

</div>

Hello,

I am new to the serverless framework and Javascript. Currently, I am trying to implement a custom javascript runtime that could work with Serverless + Openwhisk (using the _serverless-openwhisk_ plugin).

My setting is: I use the Serverless framework to deploy javascript applications to a local Openwhisk instance and this instance uses my custom javascript runtime (i.e. my docker image). I am running this example: [https://github.com/serverless/examples/tree/v3/openwhisk-node-simple-http-endpoint](https://github.com/serverless/examples/tree/v3/openwhisk-node-simple-http-endpoint) and I am observing the http [init](https://github.com/apache/openwhisk/blob/master/docs/actions-new.md#initialization) request being sent to my runtime (by Openwhisk) after I run `serverless invoke --function time`.  
The serverless.yml contains this info:

```auto
functions:
  time:
    handler: handler.time
    events:
      - http: GET time

```

The `init` request being received by my runtime is like this:

> `{"value":{"name":"my_service-dev-time","binary":true,"main":"time","code":" <some-binary-code> ..."}`

In this request, the value of the key `main` is only `time` and **not** `handler.time` (as specified in the serverless.yml). The file name **handler** is not included in the whole `init` request. My questions are:

1. Is the file name of the handler function not sent to the Openwhisk by the Serverless framework? (or is it later dropped by Openwhisk while sending the init request to the runtime?).
2. When such an init request is received, how does a javascript runtime locate the file of the function `time`? Does it search through all the javascript files?

Thank you in advance!  
Regards,  
Jogi
