Thank you very much! It's working now. It would probably be better to 
document it somewhere though; I tried changing the main field in the 
package.json file too and it didn't work so I suppose it is a requirement 
to have a file called app.js in the root of your project.

On Wednesday, August 1, 2018 at 12:25:30 AM UTC+2, Steren Giannini wrote:
>
> You probably renamed a file:
> the sample uses app.js, but you are uploading index.js.
>
> On Tue, Jul 31, 2018 at 3:22 PM Ernesto Alejo <[email protected] 
> <javascript:>> wrote:
>
>> Also the error changed now:
>>
>> Error: Cannot find module '/srv/app.js'
>> at Function.Module._resolveFilename (module.js:547)
>> at Function.Module._load (module.js:474)
>> at Function.Module.runMain (module.js:693)
>> at startup (bootstrap_node.js:191)
>> at (bootstrap_node.js:612)
>>
>>
>> On Wednesday, August 1, 2018 at 12:16:31 AM UTC+2, Ernesto Alejo wrote:
>>>
>>> I am deploying these files except the README:
>>>   
>>> https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/appengine/hello-world/standard
>>>
>>> This is the manifest the gcloud CLI logs in verbose mode, formatted to 
>>> make it easier to read it, with the checksums:
>>>
>>> [
>>>   {
>>>     "package.json": {
>>>       "sourceUrl": "
>>> https://storage.googleapis.com/staging.MY_PROJECT_HERE.appspot.com/d08bd3f852ad0bcadbd02a251ad9cf403bd46a2a
>>> ",
>>>       "sha1Sum": "d08bd3f852ad0bcadbd02a251ad9cf403bd46a2a"
>>>     },
>>>     "app.yaml": {
>>>       "sourceUrl": "
>>> https://storage.googleapis.com/staging.MY_PROJECT_HERE.appspot.com/8edb3cc262217cbeef5e3538ed42e6adbcadd46d
>>> ",
>>>       "sha1Sum": "8edb3cc262217cbeef5e3538ed42e6adbcadd46d"
>>>     },
>>>     "source-context.json": {
>>>       "sourceUrl": "
>>> https://storage.googleapis.com/staging.MY_PROJECT_HERE.appspot.com/570820d5c715c0365680c0d7d122f2eb10ca8829
>>> ",
>>>       "sha1Sum": "570820d5c715c0365680c0d7d122f2eb10ca8829"
>>>     },
>>>     "index.js": {
>>>       "sourceUrl": "
>>> https://storage.googleapis.com/staging.MY_PROJECT_HERE.appspot.com/019951bfec2488911cdd719aec263aabbeaf9fc6
>>> ",
>>>       "sha1Sum": "019951bfec2488911cdd719aec263aabbeaf9fc6"
>>>     }
>>>   }
>>> ]
>>>
>>>
>>>
>>> On Wednesday, August 1, 2018 at 12:09:40 AM UTC+2, Steren Giannini wrote:
>>>>
>>>> Can you confirm that you did not modify the hello world sample? 
>>>> I personally just deployed the hello world twice in new projects
>>>>
>>>> On Tue, Jul 31, 2018 at 3:06 PM Ernesto Alejo <[email protected]> 
>>>> wrote:
>>>>
>>>>> I can deploy the hello world application now, but when I try to access 
>>>>> it a 500 error is returned and this error is logged in Stackdriver:
>>>>>
>>>>>
>>>>> "Error: Cannot find module '/srv/server.js'
>>>>>     at Function.Module._resolveFilename (module.js:547:15)
>>>>>     at Function.Module._load (module.js:474:25)
>>>>>     at Function.Module.runMain (module.js:693:10)
>>>>>     at startup (bootstrap_node.js:191:16)
>>>>>     at bootstrap_node.js:612:3"
>>>>>
>>>>>
>>>>>
>>>>> On Tuesday, July 31, 2018 at 11:55:02 PM UTC+2, Jason Collins wrote:
>>>>>>
>>>>>> This issue should be fixed now. We apologize for any inconvenience 
>>>>>> and will make adjustments to avoid this problem in the future.
>>>>>>
>>>>>>
>>>>>> On Tuesday, 31 July 2018 08:27:39 UTC-7, Steren Giannini wrote:
>>>>>>>
>>>>>>> Thanks for the report. 
>>>>>>> We can reproduce the issue when creating new projects and we are 
>>>>>>> actively investigating the issue.
>>>>>>>
>>>>>>> On Tue, Jul 31, 2018 at 7:44 AM Giacomo Graziosi <[email protected]> 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I have the same problem and other people are reporting it on GitHub 
>>>>>>>> https://github.com/GoogleCloudPlatform/nodejs-getting-started/issues/172
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>>> Groups "Google App Engine" group.
>>>>>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>>>>>> send an email to [email protected].
>>>>>>>> To post to this group, send email to [email protected].
>>>>>>>> Visit this group at 
>>>>>>>> https://groups.google.com/group/google-appengine.
>>>>>>>> To view this discussion on the web visit 
>>>>>>>> https://groups.google.com/d/msgid/google-appengine/7fce4e7b-3ac8-43b3-ad89-7d6fd5337e5b%40googlegroups.com
>>>>>>>>  
>>>>>>>> <https://groups.google.com/d/msgid/google-appengine/7fce4e7b-3ac8-43b3-ad89-7d6fd5337e5b%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "Google App Engine" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> Visit this group at https://groups.google.com/group/google-appengine.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/google-appengine/2c603c3b-ef74-436b-9cc0-a42f27156594%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/google-appengine/2c603c3b-ef74-436b-9cc0-a42f27156594%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/12280e91-eb98-4d94-9ad7-ed391661ceb6%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/12280e91-eb98-4d94-9ad7-ed391661ceb6%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3e306b50-c23b-4792-a47f-577e1688a205%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Re: [google-appengi... 'Steren Giannini' via Google App Engine
    • Re: [google-ap... 'Steren Giannini' via Google App Engine
      • Re: [googl... Giacomo Graziosi
        • Re: [g... 'Steren Giannini' via Google App Engine
          • Re... Jason Collins
            • ... Ernesto Alejo
              • ... 'Steren Giannini' via Google App Engine
              • ... Ernesto Alejo
              • ... Ernesto Alejo
              • ... 'Steren Giannini' via Google App Engine
              • ... Ernesto Alejo
              • ... 'Steren Giannini' via Google App Engine
              • ... Ernesto Alejo
              • ... Gerardo Lima
              • ... 'Omair (Cloud Platform Support)' via Google App Engine
              • ... Gerardo Barbosa Lima
              • ... 'Omair (Cloud Platform Support)' via Google App Engine

Reply via email to