Coder Social home page Coder Social logo

Comments (7)

joesondow avatar joesondow commented on July 2, 2024 1

So now doing it this way you get the data from airtable using .select()? I don't know what I am doing wrong but I can update, remove, and create new records in airtable but I can't seem to get them unless I use find.

This question seems out of scope for this issue ticket. I recommend asking in the Airtable community forums or on Stack Overflow. Or for an example of how I've used .select() successfully you can check one of my projects here.

from airtable.java.

ArturoGJ avatar ArturoGJ commented on July 2, 2024

Im having the same problem, did you find a solution?

from airtable.java.

joesondow avatar joesondow commented on July 2, 2024

The workaround I used was this. I added two logging libraries to my projects in build.gradle:

dependencies {
    ... 

    // Provides a logger implementation for airtable.java to get rid of warning
    compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'

    // Use log4j logging to be able to turn off spurious warnings from libraries
    compile group: 'log4j', name: 'log4j', version: '1.2.17'

    ...
}

and I put this in src/main/resources/log4j.properties

# Root logger option
log4j.rootLogger=INFO, stdout

# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

# Remove spurious cookie headers warning
log4j.logger.org.apache.http.client.protocol.ResponseProcessCookies=FATAL

from airtable.java.

ArturoGJ avatar ArturoGJ commented on July 2, 2024

from airtable.java.

fstuff avatar fstuff commented on July 2, 2024

According to the posts here https://stackoverflow.com/questions/36473478/fixing-httpclient-warning-invalid-expires-attribute-using-fluent-api
this is an issue that originates in the Apache HTTP client. There is a proposed solution of setting the cookie spec to "standard":
HttpClient httpClient = HttpClients.custom() .setDefaultRequestConfig(RequestConfig.custom() .setCookieSpec(CookieSpecs.STANDARD).build()) .build();

from airtable.java.

joesondow avatar joesondow commented on July 2, 2024

There's a good looking list of solutions to this problem based on which library and which syntax is used to create the Http Client on this page: https://www.lenar.io/invalid-cookie-header-invalid-expires-attribute/

from airtable.java.

joesondow avatar joesondow commented on July 2, 2024

It looks like airtable.java uses Unirest for http calls. Unirest updated in 2019 to fix this error.

Kong/unirest-java#97

I've attempted to figure out all the necessary changes in pull request #52 but the integration tests are a challenge for an outsider to run, so I'm not sure if I missed anything.

from airtable.java.

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.