Git Product home page Git Product logo

Comments (3)

huseyin avatar huseyin commented on July 26, 2024 1

Bir de response zaten JSON formatında. to_json onu yeniden JSON olarak formatlamak anlamına geliyor. Faraday'ın imkanlarına bakmak lazım ama JSON parse generic olarak şöyle:

require 'json'

JSON.parse(json_data)

from xokul.

huseyin avatar huseyin commented on July 26, 2024

@msdundar bu daha çok client bağlamında bir sorun gibi görünüyor. Response:

Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: nginx
Date: Fri, 28 Sep 2018 18:39:34 GMT
Vary: Accept-Encoding
ETag: W/"5903774ad458de37306812b18dbbf584"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 7c97825c-759f-4f14-bb86-96f6cc150353
X-Runtime: 1.897954
X-Kong-Upstream-Latency: 1901
X-Kong-Proxy-Latency: 0
Via: kong/0.14.1

Ayrıca diğer istemcilerle sorun yaşamıyorum. Faraday default adaptörü net/http. Yine de soruna bu eksende bir bakacağım.

from xokul.

huseyin avatar huseyin commented on July 26, 2024

@msdundar bunun client-side bir sorun olduğuna eminiz. diğer dillerle ve GitHub API ile test ettiğimde de encoding "ASCII-8BIT" dönüyor. bu yüzden iş kaydını kapatıyorum

from xokul.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.