Hi friends,
The API is giving me an error 500 when I call to create a new post (in an existing topic). In the logs I see:
ActiveRecord::StatementInvalid (PG::InvalidTextRepresentation: ERROR: invalid input syntax for type inet: ""
LINE 1: ..._addresses".* FROM "screened_ip_addresses" WHERE ('' <<= ip_...
^
)
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-2.0.1/lib/patches/db/pg.rb:69:in `exec_params'
Failed to handle exception in exception app middleware : PG::InvalidTextRepresentation: ERROR: invalid input syntax for type inet: ""
LINE 1: ..._addresses".* FROM "screened_ip_addresses" WHERE ('' <<= ip_...
^
Here is my Screened IP list - in addition to the screen shot below, I have also whitelisted the IP for the machine that is calling the API. (Iām using a system-level API key to mass-import old topics/messages from my old forum software.)
Just for kicks, I also asked the API for the Screened IP listā¦ same results. (https://mydiscourse.com/admin/logs/screened_ip_addresses.json)
Iām not sure what else to check.
Anyone know:
1. What is causing this error, and
2. How can I fix it now and prevent it from happening in the future?
Help
Thanks!