postgrest icon indicating copy to clipboard operation
postgrest copied to clipboard

Custom parameter names must be two or more simple identifiers separated by dots.","code":"42602"

Open lduguid opened this issue 5 years ago • 3 comments

Environment

  • PostgreSQL version: 14.0
  • PostgREST version: 8.0
  • Operating system: Windows 10 Pro

Description of issue

followed instructions on https://postgrest.org/en/v8.0/tutorials/tut0.html . Not using docker image but previuosly installed PostgreSQL 14.0 server, which runs as intended in all other respects as far as I can tell. After starting PostgREST with this conf.

db-uri			= "postgres://authenticator:mysecretpassword@localhost:5433/postgres"
db-schema		= "api"
db-anon-role	= "web_anon"
server-host		= "!4"
server-port		= 43000
log-level		= "info"

I have applied the various db-anon-roll and schema etc. as outlined in tutorial. It all appears OK. However when I navigate to the URI -> http://192.168.50.140:43000/ (also used localhost and 127.0.0.1 etc.) I get these responses;

{"hint":null,"details":"Custom parameter names must be two or more simple identifiers separated by dots.","code":"42602","message":"invalid configuration parameter name \"request.header.upgrade-insecure-requests\""}

[Refresh]

{"hint":null,"details":"Custom parameter names must be two or more simple identifiers separated by dots.","code":"42602","message":"invalid configuration parameter name \"request.header.cache-control\""}

Client does not appear to matter, Chrome, Firefox, CURL, PostWoman etc.

I am not sure if it is a bug per se or some misconfiguration on my side but some guidance on what to do next would be

image

image

image

image

image appreciated.

lduguid avatar Oct 01 '21 19:10 lduguid

This is a breaking change that Postgres v14 introduced, and PostgREST is not compatible with v14 yet. See https://github.com/PostgREST/postgrest/issues/1857.

bnjmnt4n avatar Oct 01 '21 19:10 bnjmnt4n

thanks for the heads up. Did you want me to close this issue as it has been recorded and commented appropriately else where?

lduguid avatar Oct 01 '21 19:10 lduguid

@lduguid Yeah, let's continue on https://github.com/PostgREST/postgrest/issues/1857. Btw, there's also a fix in progress https://github.com/PostgREST/postgrest/pull/1968. We'll make a new release when that's merged.

steve-chavez avatar Oct 01 '21 23:10 steve-chavez