小编Mar*_*edo的帖子

psql:无法连接到“travis-ci”上的服务器错误

我的构建在 travis-ci 上被破坏了:

$ psql -c 'create database travis_ci_test;' -U postgres
psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Run Code Online (Sandbox Code Playgroud)

命令“psql -c '创建数据库travis_ci_test;' -U postgres" 失败并在期间以 2 退出。

我在用这个.travis.yml

2020 年 5 月 31 日更新的 Yaml 版本:

dist: trusty

env:
    global:
      - PGPORT=5433

services:
    - postgresql

addons:
    postgresql: '10'
    apt:
        packages:
        - postgresql-10
        - postgresql-client-10

before_script:
    - export RUBYOPT='-W0' # to remove ruby …
Run Code Online (Sandbox Code Playgroud)

ruby postgresql travis-ci

6
推荐指数
2
解决办法
2848
查看次数

具有预请求脚本的邮递员:“错误:解析错误:标头溢出”

仅当使用一些预请求脚本运行本地应用程序的请求时,我才遇到此问题:

Error: Parse Error: Header overflow

Postman 版本是:v7.25.0。

PS:对于我的服务器应用程序的相同请求,我没有收到任何错误。

postman postman-pre-request-script

2
推荐指数
1
解决办法
7358
查看次数