Web service issue with Rails API

I am a newbie and trying to deploy my Rails API. I am having this error.

Hi,

Do you develop on Windows?

I think this may be related to new line encoding at the end of your files, a quick search for that warning brought up several results, e.g. https://stackoverflow.com/questions/54286602/how-to-fix-shebang-warning-in-ruby which has some suggested solutions.

Alan

Yes, I develop on Windows. Thank you for the research but I already tried that. I didn’t understand why the deployment failed according to these logs. I also have found some errors.

What do the deploy logs just above that section show?

Alan

So the part that reads:

==> Using Ruby version 3.2.2 via /opt/render/project/src/.ruby-version
==> Docs on specifying a Ruby version: https://render.com/docs/ruby-version
*** Unknown ruby version 3.2.2 . Proceeding anyways ...
--2023-12-22 11:36:16-- https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2%0D.tar.xz

Implies this is still the Windows file end issue, in your .ruby-version file.

*** Unknown ruby version 3.2.2 . Proceeding anyways ...

there’s unexpected whitespace after the version number.

--2023-12-22 11:36:16-- https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2%0D.tar.xz

Which translates to an incorrect file being called from the ruby-lang.org (the %0D).

The %0D is again, part of the Windows carriage return, which would need to be corrected for Linux

Alan

omg! thank you very much! :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.